Jump to content

[SOLVED] cookie params


The Little Guy

Recommended Posts

I really don't think there is any "reliable" way of determining(on the server side anyway) when the browser closes.

 

Not what I mean.

 

 

When a session starts, you can set custom cookie params, using the above function. You need to set when the function expires (first parameter), I want to know if there is a way to set the cookie to expire when the browser closes.

Link to comment
https://forums.phpfreaks.com/topic/127192-solved-cookie-params/#findComment-658106
Share on other sites

But this does not mean that the session expires when the browser is closed, the session could have expired long before that.  Your just talking about the cookie right?  What I am saying is that you can extend the session server side to be longer than default and modify the cookie separately to expire when the browser is closed(I'm pretty sure).

Link to comment
https://forums.phpfreaks.com/topic/127192-solved-cookie-params/#findComment-658115
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.