Jump to:

2011 Posts in 1436 Topics by 620 members

Form Questions

SilverStripe Forums » Form Questions » Dialog Form and Sessions

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

Page: 1
Go to End
Author Topic: 394 Views
  • Drumstick
    Community Member
    20 Posts

    Dialog Form and Sessions Link to this post


    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.

  • Drumstick
    Community Member
    20 Posts

    Re: Dialog Form and Sessions Link to this post

    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

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.