•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 402,964 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,627 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 3392 | Replies: 3
![]() |
•
•
Join Date: Mar 2004
Location: In a house
Posts: 94
Reputation:
Rep Power: 5
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
•
•
Join Date: Jul 2004
Location: Arizona State University
Posts: 56
Reputation:
Rep Power: 5
Solved Threads: 1
•
•
•
•
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!
•
•
Join Date: Feb 2002
Location: Long Island, NY
Posts: 1,134
Reputation:
Rep Power: 12
Solved Threads: 2
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.
_.:: my websites ::._
blog @ www.samaru.net * engi No Jutsu @ www.narutorp.net * portfolio @ shinylight.com
deviantART: inscissor
blog @ www.samaru.net * engi No Jutsu @ www.narutorp.net * portfolio @ shinylight.com
deviantART: inscissor
![]() |
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- Is session will work if cookies are disbaled on clinet side? (PHP)
- session_start(): Cannot send session cache limiter - (PHP)
- session_start(): Cannot send session cache limiter - (PHP)
- Netscape 7.1, Hotmail login problem - cookies 'disabled" (Windows NT / 2000 / XP / 2003)
Other Threads in the PHP Forum
- Previous Thread: An error I have never seen before
- Next Thread: Array to String



Linear Mode