sesion query.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
majidali
Forum Newbie
Posts: 17
Joined: Thu Mar 11, 2010 3:33 am

sesion query.

Post by majidali »

can any one explain me the session concept ......

suppose i opened gmail through firefox browser ,i m a valid user ....my session id will be created as soon as i hit the frst page.....now when i move nxt page how the server will maintain my session.....

like wen i move to nxt page does server check for my session id ,n if it checks how does it comes to know dat ,id belong to me .....

during this does any info ralated to session is shared btwn browers n server.........

pls reply.........
thanx in advance.......
User avatar
flying_circus
Forum Regular
Posts: 732
Joined: Wed Mar 05, 2008 10:23 pm
Location: Sunriver, OR

Re: sesion query.

Post by flying_circus »

Basic sessions work by sending you a token, referred to as a session id. This token may be sent to you in the form of a cookie, passed around as a post var, or as a querystring var in the URL. Every subsequent page request that you make to that server, you pass the token back to the server using one of the above methods. The server checks it's database for a match and resumes the session if a match exists.
majidali
Forum Newbie
Posts: 17
Joined: Thu Mar 11, 2010 3:33 am

Re: sesion query.

Post by majidali »

th ank u very much for this...............
Post Reply