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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Form Questions /

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

Dialog Form and Sessions


Go to End


2 Posts   1188 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