943,915 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 4568
  • PHP RSS
Jun 29th, 2004
0

how can i used session and cookies ???

Expand Post »
i want any one tell me

how can i used session and cookies ??? :o :o :o
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
astm is offline Offline
5 posts
since Jun 2004
Jun 30th, 2004
0

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

Its funny I was looking around for tutorials on a few of these kind things :
Cookies Tutorial and Sessions Tutorial
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
Ragnarok is offline Offline
94 posts
since Mar 2004
Jul 16th, 2004
0

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

Quote originally posted by astm ...
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!
Reputation Points: 14
Solved Threads: 1
Junior Poster in Training
bwest is offline Offline
57 posts
since Jul 2004
Jul 16th, 2004
0

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

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.
Team Colleague
Reputation Points: 262
Solved Threads: 18
a.k.a inscissor
samaru is offline Offline
1,227 posts
since Feb 2002

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: An error I have never seen before
Next Thread in PHP Forum Timeline: PHP 5 fast&easy web development





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC