php session

From: Date: Sun, 01 Dec 2002 07:58:26 +0000
Subject: php session
Groups: php.db 
Request: Send a blank email to php-db+get-23746@lists.php.net to get a copy of this message
hi people, I'm having a little trouble getting sessions to work properly with php. I have put session_start(); on all pages before any data is printed. The session will start on the first loading of the page but after a link is clicked the session seems to die i have no idea why. for the links on the pages i have included the SID constant like so: <a href='index.php" . SID . "&action=whatever'>Link</a> but after a link is clicked the links them appear to lose the reference to the SID constant so instead of looking like <a href='index.php?PHPSESS=s8743vbkuwivn7&action=whatever>Link</a> they look like <a href='index.php?&action=whatever'>Link</a> the session_start(); isn't right at the start of the pages, its a few lines after but none of the lines before session_start(); print any data, they only store data in variables...does that matter?? I'm completely stumped trying to get this to work properly. can anyone offer any suggestions? Thanks heaps.

Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
« previous php.db (#23746) next »