Jump to:

23487 Posts in 18996 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » best way to check session

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 472 Views
  • martimiz
    Avatar
    Forum Moderator
    1086 Posts

    best way to check session Link to this post

    What would be the 'approved SilverStripe way' to check if session cookies are enabled? Is there a value that should always be present, or should I just set one myself (not I hope)?

    For instance I want the securityToken to be enabled on contactforms. If there's no session I want to show some sort of message to enable cookies, instead of just showing the form and getting the 'possible CSRF attack' message on submission...

    472 Views
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.