Brad Brevet wrote:
Is what I have set up and it is working is a cookie that saves someones
username if they check the Remember Me box. If the cookie is set it then
starts the necessary session and stays active for 30 days.
Are there any pitfalls to this that you can see? Are there any
Brad Brevet wrote:
Nevermind, I figured it all out, thanks for the info.
Brad Brevet [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Is this the all I would need to do to set a cookie with a username
stored
for 30 days? Sorry I am new at this.
setcookie (Cookie Name, $username,
Hey all, I have a log-in all set up on my site using PHP Sessions but I want
to add the Remember Me function, but I don't know what to set in the cookie
to make it that way. Please help. :)
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On Fri, 3 Dec 2004 07:38:47 -0800, Brad Brevet
[EMAIL PROTECTED] wrote:
Hey all, I have a log-in all set up on my site using PHP Sessions but I want
to add the Remember Me function, but I don't know what to set in the cookie
to make it that way. Please help. :)
Set a cookie, then check for it
Is this the all I would need to do to set a cookie with a username stored
for 30 days? Sorry I am new at this.
setcookie (Cookie Name, $username, time()+60*60*24*30);
Greg Donald [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On Fri, 3 Dec 2004 07:38:47 -0800, Brad Brevet
[EMAIL
Nevermind, I figured it all out, thanks for the info.
Brad Brevet [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Is this the all I would need to do to set a cookie with a username stored
for 30 days? Sorry I am new at this.
setcookie (Cookie Name, $username, time()+60*60*24*30);
Brad Brevet wrote:
Hey all, I have a log-in all set up on my site using PHP Sessions but I
want
to add the Remember Me function, but I don't know what to set in the
cookie
to make it that way. Please help. :)
You have several options.
One is to do the http://php.net/session_start, and then,
Is what I have set up and it is working is a cookie that saves someones
username if they check the Remember Me box. If the cookie is set it then
starts the necessary session and stays active for 30 days.
Are there any pitfalls to this that you can see? Are there any additional
security measures I
Q: Because it reverses the logical flow of conversation.
A: Why is putting a reply at the top of the message frowned upon?
On Fri, 3 Dec 2004 10:58:21 -0800, Brad Brevet
[EMAIL PROTECTED] wrote:
What else should I be worried about as far as security is concerned with
Sessions and Cookies?
You
When I use this feature, I set a cookie to Remember Me that lasts for
six months or a year. That's completely independent of any session(s).
Often I'll have a 6-month session for storing shopping cart contents,
and a 30-minute session for storing login status. All kinds of things
going on
Well, is what my plan is, is to create a session on log-in along with a
stored cookie, so that once the browser is closed the session is removed and
only the cookie remains for the 30-day time period.
Brad
Brian Dunning [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
When I use this
11 matches
Mail list logo