I have been struggling for a while on how to share information stored in $_SESSION in order to avoid pop up issues with IE and etc. I would really like some insight into how to deal more gracefully with cookies, from someone who uses them more often than i.
Basically all I want to do is populate the session data into the cookie. Here is an example of code that would be nice to work:
Fair enough, although for this particular application, security is not a real issue.
The problem is that sessions aren't persistent through page loads due to having a load balanced server. There is also the issue of pop ups killing the session in IE. I am trying to work out a two birds, one stone approach ;(
Do you know of any workarounds for this that don't involve using cookies? I certainly prefer sessions all things equal. But I certainly can't be having a user authenticate on each new page ...
Never ever store their password in a public location. It's perfectly safe to store other session data in a cookie, so long as the authentication doesn't take place directly from the cookie to the application.
Just out of curiousity, what is this about popups in IE killing sessions?
I have been working on a login system here, and this will suit my needs well. I had never thought to look for something like it. I was coding my own solution, but this will make things a lot easier. Thanks!
"Why is it drug addicts and computer aficionados are both called users?" -Clifford Stoll