1,105,380 Community Members

Cookies & Sessions

Member Avatar
engrjd91
Light Poster
43 posts since Feb 2013
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

I'm a beginner in php..
can any one explain cookies & sessions in an easy way for me?
i have surfed different sites for it also i have taken many trainings but yet i m not that much clear about these two concepts... kindly help me out !

Member Avatar
pixelsoul
Posting Shark
918 posts since Feb 2011
Reputation Points: 174 [?]
Q&As Helped to Solve: 147 [?]
Skill Endorsements: 25 [?]
 
0
 

Cookies persist on your local computer, they are small text files that are stored there by websites and web applications that contain some basic information about you as a user.

Sessions are application specific and persist only as long as you are actively engaged with a particular web site. For instance if you leave Amazon.com open do some shopping, then close the web browser before making any purchases, your session has ended, however the cookie that identifies your username still exists on your local computer.

http://wiki.answers.com/Q/What_is_the_difference_between_session_and_cookies

If you have more specific questions about cookies and sessions we can answers those for you.

Member Avatar
<M/>
Industrious Poster
4,473 posts since Apr 2012
Reputation Points: 106 [?]
Q&As Helped to Solve: 139 [?]
Skill Endorsements: 114 [?]
Featured
 
0
 

Here is more info on cookies and sessions,

http://en.wikipedia.org/wiki/HTTP_cookie

http://en.wikipedia.org/wiki/Session_(computer_science)

I think that pixelsoul's information on sessions will be reliable than mine, he is a talented fellow when it comes to php (compared to me... I am still a newb, for another 2 years).

Member Avatar
broj1
Posting Virtuoso
1,576 posts since Jan 2011
Reputation Points: 220 [?]
Q&As Helped to Solve: 219 [?]
Skill Endorsements: 21 [?]
Featured
 
0
 

And info on cookies and session from PHP's point of view:

http://php.net/manual/en/features.cookies.php

http://www.php.net/manual/en/book.session.php

Member Avatar
engrjd91
Light Poster
43 posts since Feb 2013
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

i got it :)..
thanks all of you :)

Question Answered as of 1 Year Ago by <M/>, broj1 and pixelsoul
You
This question has already been solved: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article