| | |
how can i used session and cookies ???
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Mar 2004
Posts: 94
Reputation:
Solved Threads: 0
Its funny I was looking around for tutorials on a few of these kind things :
Cookies Tutorial and Sessions Tutorial
Cookies Tutorial and Sessions Tutorial
•
•
•
•
Originally Posted by astm
i want any one tell me
how can i used session and cookies ??? :o :o :o
-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!
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.
Check out my blog at http://www.shinylight.com for more stuff about web dev.
![]() |
Similar Threads
- IE6/IE7 unexpectedly drops the PHP Session ID cookie (PHPSESSID) (PHP)
- Having problem in the choice in using Query String OR session/cookies (VB.NET)
- Need To Save Timer In Cookies (JavaScript / DHTML / AJAX)
- when to use session and cookies variables ? (ASP)
- Setting a Session Cookie (PHP)
Other Threads in the PHP Forum
- Previous Thread: An error I have never seen before
- Next Thread: Array to String
| Thread Tools | Search this Thread |
advanced alerts apache api archive array autosuggest beginner binary broken cakephp checkbox class clients cms code cron curl database date datepart display dynamic echo email emptydisplayvalue eregi error execute explodefunction file files folder form forms function functions google hack head href htaccess html if...loop image include insert ip javasciptvalidation javascript joomla keywords library limit link login mail matching menu mlm multiple mysql object oop password paypal pdf php phpincludeissue query radio random recursion recursive remote script search searchbox server sessions shot smarty source space speed sql syntax system table tutorial update upload url validator variable vbulletin video web website youtube






