Page 1 of 1

session

Posted: Fri Apr 20, 2007 5:33 am
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.

Posted: Fri Apr 20, 2007 5:38 am
by bert4
You should start with session_start(); on every page....

Type something like "php session tutorial" in google to get you going....

Posted: Fri Apr 20, 2007 6:09 am
by kpraman
i wanted to know, will it make any difference

Posted: Fri Apr 20, 2007 6:12 am
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?