set cookie in this way:
$date = $time;
if (isset($authentication))
{
setcookie("status", $status, $date);
setcookie("user", $user, $date);
setcookie("group", $group, $date);
setcookie("authentication", $authentication, $date);
setcookie("laston", $laston, $date);
setcookie("user_name_full", $user_name_full, $date);
setcookie("user_email", $user_email, $date);
}
else
{
setcookie("status", "Logged In", $date);
setcookie("user", $txtUsername, $date);
setcookie("group", $row[4], $date);
setcookie("authentication", "YES", $date);
setcookie("laston", $row[6], $date);
setcookie("user_name_full", $user_name_full, $date);
setcookie("user_email", $user_email, $date);
}
João Paulo (Brazil)
----- Original Message -----
From: <php...@li...>
To: <php...@li...>
Sent: Wednesday, April 16, 2003 12:02 AM
Subject: Phphelpdesk-help digest, Vol 1 #262 - 1 msg
> Send Phphelpdesk-help mailing list submissions to
> php...@li...
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.sourceforge.net/lists/listinfo/phphelpdesk-help
> or, via email, send a message with subject or body 'help' to
> php...@li...
>
> You can reach the person managing the list at
> php...@li...
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Phphelpdesk-help digest..."
>
>
> Today's Topics:
>
> 1. Re: Cookie Error after login (Mike Maki)
>
> --__--__--
>
> Message: 1
> From: "Mike Maki" <mm...@ad...>
> To: "Kevin Laiche" <kev...@ho...>,
> <php...@li...>
> Subject: Re: [Phphelpdesk-help] Cookie Error after login
> Date: Tue, 15 Apr 2003 07:56:42 -0700
>
> See this:
>
http://sourceforge.net/mailarchive/forum.php?thread_id=1828256&forum_id=4553
>
> Good Luck,
>
> Mike
> ----- Original Message -----
> From: "Kevin Laiche" <kev...@ho...>
> To: <php...@li...>
> Sent: Friday, April 11, 2003 11:21 AM
> Subject: [Phphelpdesk-help] Cookie Error after login
>
>
> > I am recieving this error message after I login as admin admin.
> > I just got the site up so I have not changed anything as of yet.
> >
> >
> >
> > Warning: setcookie() expects parameter 3 to be long
> >
> > Any ideas?
> >
> > _________________________________________________________________
> > Tired of spam? Get advanced junk mail protection with MSN 8.
> > http://join.msn.com/?page=features/junkmail
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: Etnus, makers of TotalView, The
> debugger
> > for complex code. Debugging C/C++ programs can leave you feeling lost
and
> > disoriented. TotalView can help you find your way. Available on major
UNIX
> > and Linux platforms. Try it free. www.etnus.com
> > _______________________________________________
> > Phphelpdesk-help mailing list
> > Php...@li...
> > https://lists.sourceforge.net/lists/listinfo/phphelpdesk-help
>
>
>
>
> --__--__--
>
> _______________________________________________
> Phphelpdesk-help mailing list
> Php...@li...
> https://lists.sourceforge.net/lists/listinfo/phphelpdesk-help
>
>
> End of Phphelpdesk-help Digest
>
|