|
-
Dec 16th, 2010, 05:25 AM
#1
[RESOLVED] Concept of SESSION management
Hi guys...
I didn't get the idea of session management...
I mean where does the session data will be stored for the client side ?
Explanation: When user logins successfully, a new session will be started. Then the session data is either entered into a database or to the SESSION array. That is in server side.
But what does this client side do ? Stores the sessionid in cookies ? 
Thanks....
If my post was helpful to you, then express your gratitude using Rate this Post. 
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet
Social Group: VBForums - Developers from India
Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...
-
Dec 16th, 2010, 06:45 PM
#2
Fanatic Member
Re: Concept of SESSION management
i'm not quite sure about this either, but this might explain something..
i believe as long as the browser is open, there is a connection between the server and the client, as soon as the client closes, the session and connection is terminated.
http://forums.devnetwork.net/viewtopic.php?f=34&t=88006
-
Dec 16th, 2010, 08:53 PM
#3
Re: Concept of SESSION management
 Originally Posted by Justa Lol
i believe as long as the browser is open, there is a connection between the server and the client, as soon as the client closes, the session and connection is terminated.
Yes, because the session identifier is a cookie with an expiration of the browser session.
Of course a browser can choose to keep the cookie longer, but mainstream browsers don't do this.
But if cookies are not supported, you need to work on a system that transfers the session identifier along the pages with POST or GET.
In case you are wondering, serverside, the session data by default is stored in files in the 'tmp' directory.
This can pose a security issue on shared webhosting, but unless you're dealing with confidential data it's not a hole worth plugging.
http://phpsec.org/projects/guide/5.html
Last edited by TheBigB; Dec 16th, 2010 at 08:57 PM.
Delete it. They just clutter threads anyway.
-
Dec 17th, 2010, 09:21 AM
#4
Re: Concept of SESSION management
Thanks guys...
So, when we store the sessions details in the SESSION variable, will it be automatically passed to the client or we have to do this explicitly to manage the session ?
If my post was helpful to you, then express your gratitude using Rate this Post. 
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet
Social Group: VBForums - Developers from India
Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...
-
Dec 17th, 2010, 11:29 AM
#5
Re: Concept of SESSION management
Session data never is passed to the client. Only it's identifier.
Delete it. They just clutter threads anyway.
-
Dec 17th, 2010, 09:30 PM
#6
Re: Concept of SESSION management
 Originally Posted by TheBigB
Session data never is passed to the client. Only it's identifier.
Ok.. Thanks...
If my post was helpful to you, then express your gratitude using Rate this Post. 
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet
Social Group: VBForums - Developers from India
Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|