rinteractive Posted January 10, 2008 Share Posted January 10, 2008 i am new to php , just i want the difference between session and cookies can any one explain me. Thanks in Advance Quote Link to comment https://forums.phpfreaks.com/topic/85344-difference-between-session-and-cookies/ Share on other sites More sharing options...
jaymc Posted January 10, 2008 Share Posted January 10, 2008 sessions are stored on the server cookies are stored locally sessions are more secure cookies are not, as you can get the data if you can get at there PC Essentually you can use either, but sessions are best for practice and better if you want to focus on security Quote Link to comment https://forums.phpfreaks.com/topic/85344-difference-between-session-and-cookies/#findComment-435455 Share on other sites More sharing options...
helraizer Posted January 10, 2008 Share Posted January 10, 2008 i am new to php , just i want the difference between session and cookies can any one explain me. Thanks in Advance A session is stored in the browser (so to speak) for that particular website so if you return to it, your details still remain, but they usually expire once the browser has been closed. Cookies on the other hand are small text files that are saved to the user's PC, the main difference being that a cookie can be stored for alot longer; down side being they can easily be manipulated/editted by a user. Sam Quote Link to comment https://forums.phpfreaks.com/topic/85344-difference-between-session-and-cookies/#findComment-435467 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.