Re: [PHP] session in https

2001-12-04 Thread Jim


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:
>Please continue
>
>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: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
Jim Musil
-
Multimedia Programmer
Nettmedia
-
212-629-0004
[EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] session in https

2001-12-04 Thread php geko

Hi Jim, I included a phpinfo in my script, where can I see the values of
them? (in PHPINFO)

Luc


"Jim" <[EMAIL PROTECTED]> wrote in message
news:p05101026b832d339af13@[192.168.1.17]...
>
> 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:
> >Please continue
> >
> >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: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
> --
> Jim Musil
> -
> Multimedia Programmer
> Nettmedia
> -
> 212-629-0004
> [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] session in https

2001-12-04 Thread Julio Nobrega Trabalhando

$HTTP_SESSION_VARS shows you this. I don't remember precisely if or where it
appears on phpinfo();, but you can try this to see all registered session
variables:





  That's a nice way to see any array, BTW. Including $HTTP_SERVER_VARS,
$HTTP_POST_VARS, GET, etc... nice one.


--

Julio Nobrega

Don't eat the yellow snow.


"Php Geko" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi Jim, I included a phpinfo in my script, where can I see the values of
> them? (in PHPINFO)
>
> Luc
>
>
> "Jim" <[EMAIL PROTECTED]> wrote in message
> news:p05101026b832d339af13@[192.168.1.17]...
> >
> > 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:
> > >Please continue
> > >
> > >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: [EMAIL PROTECTED]
> > >For additional commands, e-mail: [EMAIL PROTECTED]
> > >To contact the list administrators, e-mail:
[EMAIL PROTECTED]
> >
> >
> > --
> > Jim Musil
> > -
> > Multimedia Programmer
> > Nettmedia
> > -
> > 212-629-0004
> > [EMAIL PROTECTED]
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] session in https

2001-12-04 Thread php geko

Only the old session vars show up when I do print_r($HTTP_SESSION_VARS);

In the unsecure http I already registered a session var called $newses. when
I go to the secure part I use the same sessionid -> session_id($sid);
where $sid was part of the url
https://domain.com/gotosecure.php?sid=$PHPSESID";>Go to secure
part

Once I am in the secure part (Login) I want to register a new sessvar.
session_register("myses");
if(session_is_registered("myses")){
$myses=array("id"=>$row["user_id"],"username"=>$row["username"],"password"=>
$row["password"]);
}

and it is this one that I cant get!






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]