session load issues

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
User avatar
paqman
Forum Contributor
Posts: 125
Joined: Sun Nov 14, 2004 7:41 pm
Location: Burnaby, BC, Canada

session load issues

Post by paqman »

Hey,

I'm working on a website for my own business and I'm having a strange event occur. I initialize a session on the main (index.php) page (http://southslopelandscaping.com/test/) and on it's first load, it adds PHPSESSID to every link (ex: http://southslopelandscaping.com/test/i ... a5287306f4)

I'm fairly new to php and I was wondering what's going on. If anyone has any advice, I'd love to hear it! Thanks!
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

That is PHP's way of propagating the session id. If there were a form on that page you would see a hidden field called PHPSESSID as well. This will happen on the first session'ed page, and on all subsequent pages if the server cannot write the session information to a cookie.
Post Reply