Re: session in https

From: Date: Tue, 04 Dec 2001 19:26:23 +0000
Subject: Re: session in https
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-76581@lists.php.net to get a copy of this message
Unless you have an unstated purpose for serializing/unserializing, it's not necessary because PHP automatically serializes and unserializes your session variables. Can you see the correct values if you insert the phpinfo() command? If you can that should give you a clue as to how to reference them, if you can't then you aren't setting them correctly.
I am trying to set some sessions variables in an https (SSL): session_start(); ... $row = $results[0]; session_register("myses"); if(session_is_registered("myses")){ $myses=array("id"=>$row["user_id"],"username"=>$row["username"],"password"=> $row["password"]); $myses=serialize($myses); } the to go to another php script in where I want to call my vars i use: <a href='".SECURE."delivery.php?sid=".$PHPSESSID."'>Please continue</a> in the delivery.php I want to call the session vars: session_start(); ... $myses=unserialize($myses); echo "Session ID:.... " .$PHPSESSID .NL; echo "ID..." .$myses["id"] . NL; echo "username..." .$myses["username"] . NL; I receive blanks ... although the session is set in the /temp directory. It has a value in it but I don't have permission to read the value of my sess. By the way... I use php4.06 Please help THX Luc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net
-- Jim Musil --------- Multimedia Programmer Nettmedia ------------- 212-629-0004 jim@nettmedia.com

« previous php.general (#76581) next »