Welcome Guest, Not a member yet? Register   Sign In
Session doesn't end when browser window is closed
#5

7200 is two hours. For something that absolutely has to stay longer, you can set cookie data separately with a different expiration time, but you should probably be using a different storage mechanism than the session or cookie for longer-term data.

Realistically, you shouldn't even need flash data for the validation messages unless you're redirecting to display the form with the error messages. If you just load the view when the validation fails and populate the error messages, the data doesn't need to be persisted in the session, even for one request. (If you are populating the flash data and loading the view rather than redirecting, this may be the reason your validation messages are returning, depending on how you actually retrieve/display the messages.)
Reply


Messages In This Thread
RE: Session doesn't end when browser window is closed - by mwhitney - 04-27-2016, 01:17 PM



Theme © iAndrew 2016 - Forum software by © MyBB