Sessions
Posted: Thu Feb 21, 2008 8:42 am
so i am making a website and i was wondering what the best way to go about this would be.
i am making a website for a local store here. now i have set up a session and i have stored some values in session variables such as the ip address and stuff like that. now i have some values that are constants such as the stores address and what not. so i have done this:
i did that because i dont want to have to write the address out everywhere i need to display it. so my question is this. is it better to store things like that the way that i did it? or should i make it a session variable? it was my thought that session variables should be values that are unique to the session and since the address is a constant i should not store it as a session variable.
any input on this situation would be great.
also is there a way to out put the session values for everyone that is on the site? if i do this:
i only see my session and i would like to see the others.
thanks
i am making a website for a local store here. now i have set up a session and i have stored some values in session variables such as the ip address and stuff like that. now i have some values that are constants such as the stores address and what not. so i have done this:
Code: Select all
$storeaddress = '1234 anystreet';any input on this situation would be great.
also is there a way to out put the session values for everyone that is on the site? if i do this:
Code: Select all
print_r($_SESSION);thanks