HI,
I'd like to save several information in a session cookie when a user comes to my site.
The session should start on the first page that the user requests. That could be /index.php or /subfolder/etc/something.php.
So, no matter where on the site you start browsing my site, the session cookie should store language preference, screen width (gotten through javascript, and a third variable).
That cookie should remember the user setting throughout the site. 😉
I was think that, if a user comes to a site and the session is not started, I forward him to the site that starts the session and sets the cookie.
But how do I do that? :eek:
And how do I set a variable in a cookie?
I read that the page that starts the session (and sets the cookie) is not able to read from that cookie so it itself is displayed using the cookie data. How do I work around that?
Thank you!!!
😃