Date: 08/15/00
- Next message: Alex Augot: "[PHP] Directory Walking"
- Previous message: Martin Neimeier: "Re: [PHP] Targeting a META HTTP-EQUIV=REFRESH"
- In reply to: Ben Meyer: "[PHP] Help Needed: Sessions"
- Next in thread: Ben Meyer: "RE: [PHP] Help Needed: Sessions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Ben Meyer wrote:
>
> I am having a couple problems with sessions.
>
> I am allowing PHP to record the session information as defaulted to cookies.
> At the same time I am recording the SessionID and other information to the
> database when the user logs in. I am also storing some of this data in a
> session variable called $UserData that is arrayed into the variables I need
> to pass. Here's a sample of my logon:
>
> session_start();
> session_name("my_session_name");
> session_register($UserData);
> $UserData["SessionID"] = session_id();
> $UserData["SessionName"] = session_name();
> PHP_SESSION_RECORD("LOGON"); //This is the function that I use to record the
> information to the database.
>
> Now my problem comes in in that the $UserData is not being saved. I cannot
> access the information stored in $UserData[] on other pages of the session.
> It is not unregistered until the user goes to the Logout page.
>
> Help is greatly and urgently needed.
>
> Thank you in advance.
>
> Benjamen R. Meyer
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe <email protected>
> For additional commands, e-mail: php-general-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>
Please correct the line:
session_register($UserData);
into:
session_register("UserData");
and it should work ....
cu
Martin
-- -------------- Martin Neimeier Tel:+49(6262)912344 Fax:+49(6262)912347-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Alex Augot: "[PHP] Directory Walking"
- Previous message: Martin Neimeier: "Re: [PHP] Targeting a META HTTP-EQUIV=REFRESH"
- In reply to: Ben Meyer: "[PHP] Help Needed: Sessions"
- Next in thread: Ben Meyer: "RE: [PHP] Help Needed: Sessions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

