RE: [PHP-DB] Session confusion :-(
| From: | Beau Lebens | Date: | Mon, 18 Feb 2002 02:57:23 +0000 |
| Subject: | RE: [PHP-DB] Session confusion :-( | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-17009@lists.php.net to get a copy of this message | ||
are you always "refreshing" the session on each page dave?
i am pretty sure you need to call session_start() on every page that you
will be accessing the session-based variables.
HTH
beau
// -----Original Message-----
// From: Dave Carrera [mailto:dave@davecarrera.com]
// Sent: Saturday, 16 February 2002 10:56 PM
// To: php List
// Subject: [PHP-DB] Session confusion :-(
//
//
// Hi All
//
// I am send variable values via set links i.e.:
//
// http://domian_name.com/page.php?category=1
//
// http://domian_name.com/page.php?category=2
//
// http://domian_name.com/page.php?category=3
//
// Etc etc
//
// The value is sent to a session. THIS WORKS BUT.....
//
// If I click on the first link session variable category is set to 1.
//
// But if I then click on the send , third, forth or whatever link
// Session variable is still set to 1.
//
// I have tried
//
// If(ISSET($category)){
// Unset($category);
// Session_register(category) // hoping it would accept the new
// sent value.
// }
//
// No Go
//
// Can anyone throw some light on this please.
//
// As Always I am grateful for any pointers or exampled help
//
// :-)
//
// Dave Carrera
// Php / MySql Development
// Web Design
// Site Marketing
// http://www.davecarrera.com
//
//
//
//
// --
// PHP Database Mailing List (http://www.php.net/)
// To unsubscribe, visit: http://www.php.net/unsub.php
//