954,568 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

how can i used session and cookies ???

i want any one tell me

how can i used session and cookies ??? :o :o :o

astm
Newbie Poster
5 posts since Jun 2004
Reputation Points: 10
Solved Threads: 0
 

Its funny I was looking around for tutorials on a few of these kind things :
Cookies Tutorial and Sessions Tutorial

Ragnarok
Junior Poster in Training
94 posts since Mar 2004
Reputation Points: 10
Solved Threads: 0
 

i want any one tell me

how can i used session and cookies ??? :o :o :o

I've been using sessions for a short time. But here's what I know.

-Sessions and cookies go hand-and-hand. Use session_start(); at the begining of the code and if the users browser accepts cookies then your session variables are basically saved in the cookie. If they dont accept, then the browser is responsible for the variables. Either way the variables are handled by you in the same way

-To make a session variable, just start using one like you do with a regular php variable. Say $_SESSION['variablename'] = value; or use an array like this: $_SESSION['arrayname']['key'] = value;

hope this is a good start!

bwest
Junior Poster in Training
57 posts since Jul 2004
Reputation Points: 14
Solved Threads: 1
 

Be aware that some people (those who don't know much about anything and think that cookies will give them a venereal disease) turn them off.

samaru
a.k.a inscissor
Team Colleague
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You