in reply to Re^5: HTML Template
in thread HTML Template
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: HTML Template
by punkish (Priest) on Jun 14, 2010 at 05:36 UTC | |
Think of it this way... when user A sends requests a web page, a custom web page is constructed for user A, and sent back to user A. No one, no one in the world, in fact, not even user A using another browser on the same computer, gets that first page. Only user A, within the browser from which user A requested the page, only that user gets that page. That connection, between that instance of the browser and the web server, that connection is a session, and that session lasts only for the duration of that connection. To make it last longer... well, that is session and state management, and that is your responsibility. Of course, if you use any persistence framework, all bets are off, and session management kicks in. Once again, you will be greatly helped by reading up on sessions and state management in web processes.
--
when small people start casting long shadows, it is time to go to bed | [reply] [d/l] [select] |
by Anonymous Monk on Jun 14, 2010 at 07:55 UTC | |
Think of it this way... when user A sends requests a web page, a custom web page is constructed for user A, and sent back to user A. No one, no one in the world, in fact, not even user A using another browser on the same computer, gets that first page. Only user A, within the browser from which user A requested the page, only that user gets that page. That connection, between that instance of the browser and the web server, that connection is a session, and that session lasts only for the duration of that connection.Thanks for the above. It's indeed very clear and reassuring that this part wouldn't result in user B seeing user A's page. I do indeed use CGI::Session. Now I'm wondering if I might be messing things up by declaring the session variable ($session) as a global: The $session object is created when the user logs in and is loaded only via index.pl and used in other modules (called via index.pl) requiring it. Any risk of this variable being corrupted when there are multiple users? Please enlighten me :) | [reply] [d/l] |