Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Form Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Dialog Form and Sessions


Go to End


2 Posts   874 Views

Avatar
Drumstick

Community Member, 20 Posts

25 July 2013 at 6:23pm

Hi

Maybe someone knows that.

I have a dialog form which pops up, when you browse to the website. There you have to choose a country, then you can access the website. In the background I save the country in a session variable and through that I can get som other data to display.

But now I have the problem that the sessions works just, when you have in the browser the url with index.php at the end..means

www.mydomain.ch/index.php -> this works
www.mydomain.ch -> this works not, it always shows the dialog poped up and nothing happens

when do the sessions start? Or what do I wrong?

If someone can give me an answer or a tipp that would be great. Thanks very much.

Avatar
Drumstick

Community Member, 20 Posts

27 July 2013 at 5:47pm

Edited: 27/07/2013 5:59pm

so, I have the solution:

the Sessions starts when I start the session in the config.php File

Session::start(); -> with that it starts

then the dialog popup works here too
www.mydomain.ch