Auto-login on forums

This is a discussion on Auto-login on forums within the PHP Language forums, part of the PHP Programming Forums category; How does auto-login on web forum works? I have a forum of my own, created from scratch, and now ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-15-2004
mfmilan@gmail.com
 
Posts: n/a
Default Auto-login on forums

How does auto-login on web forum works? I have a forum of my own,
created from scratch, and now I want to implement option that alows
users to be logged in automaticly every time they open my forum, and
also option "messages created after your last visit". I have tryed with
sessions, but it doesn't working properly.

So, can anyone tell me how should i do that(or where can i read
something about that)?

Reply With Quote
  #2 (permalink)  
Old 12-15-2004
Gary Hasler
 
Posts: n/a
Default Re: Auto-login on forums

Cookies!

mfmilan@gmail.com wrote:

> How does auto-login on web forum works? I have a forum of my own,
> created from scratch, and now I want to implement option that alows
> users to be logged in automaticly every time they open my forum, and
> also option "messages created after your last visit". I have tryed with
> sessions, but it doesn't working properly.
>
> So, can anyone tell me how should i do that(or where can i read
> something about that)?


Reply With Quote
  #3 (permalink)  
Old 12-15-2004
mfmilan@gmail.com
 
Posts: n/a
Default Re: Auto-login on forums

Thank you for this big & full of explanations answer! :)

Really, i know that cookies is the solution, but how? (Session also
works with cookies, btw). But how to know when some user left the
forum? I need this, because i must know when he left, so i could tell
him what he missed while wasn't on the forum. And how to implement this
for every thread?

Reply With Quote
  #4 (permalink)  
Old 12-15-2004
Thomas
 
Posts: n/a
Default Re: Auto-login on forums

*<mfmilan@gmail.com> wrote:

> Thank you for this big & full of explanations answer! :)
>
> Really, i know that cookies is the solution, but how? (Session also
> works with cookies, btw). But how to know when some user left the
> forum? I need this, because i must know when he left, so i could tell
> him what he missed while wasn't on the forum. And how to implement this
> for every thread?



RTFM:

http://no2.php.net/manual/en/function.setcookie.php


--
Thomas

SELECT date FROM wife WHERE bitching = '0' AND sex = '1'
Reply With Quote
  #5 (permalink)  
Old 12-15-2004
Gordon Burditt
 
Posts: n/a
Default Re: Auto-login on forums

>Really, i know that cookies is the solution, but how? (Session also
>works with cookies, btw). But how to know when some user left the
>forum?


The time of the last page access BEFORE the user comes back to the
login page is your best guess as to when the user left. (Your
logins do time out and not last forever, right?)

>I need this, because i must know when he left, so i could tell
>him what he missed while wasn't on the forum. And how to implement this
>for every thread?


You can't store this information in a session, or a cookie. (The
user may have different computers at, say, home and work, and access
the forum from both.) You need a database with records for each
individual user.

Gordon L. Burditt
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 09:35 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0