session

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kpraman
Forum Contributor
Posts: 172
Joined: Fri Oct 13, 2006 10:54 am

session

Post by kpraman »

I am using

Code: Select all

session_id();
for shopping cart. Should i have to write the function in every page or is should i have to put it in one page and assign it to a session variable and put that in all the page.
User avatar
bert4
Forum Newbie
Posts: 18
Joined: Wed Apr 18, 2007 9:44 am
Location: Bali, Indonesia

Post by bert4 »

You should start with session_start(); on every page....

Type something like "php session tutorial" in google to get you going....
kpraman
Forum Contributor
Posts: 172
Joined: Fri Oct 13, 2006 10:54 am

Post by kpraman »

i wanted to know, will it make any difference
User avatar
Oren
DevNet Resident
Posts: 1640
Joined: Fri Apr 07, 2006 5:13 am
Location: Israel

Post by Oren »

I'm not really sure what is your question, but I believe that the answer is: no.
Why do you use this function anyway?
Post Reply