473,236 Members | 1,749 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,236 software developers and data experts.

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)?

Jul 17 '05 #1
4 2085
Cookies!

mf*****@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)?


Jul 17 '05 #2
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?

Jul 17 '05 #3
*<mf*****@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'
Jul 17 '05 #4
>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
Jul 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Manlio Perillo | last post by:
Hi. This post follows "does python have useless destructors". I'm not an expert, so I hope what I will write is meaningfull and clear. Actually in Python there is no possibility to write code...
1
by: Glabbeek | last post by:
I'm changing the layout of my site. Instead of using tables, I will use DIVs. It's working fine, except for 1 thing: In IE6 some DIVs are not the correct width. Mozilla and Opera are showing the...
5
by: Robert Downes | last post by:
I'm using the following in a page that I'm testing in Mozilla: p.actionLinkBlock {border: 1px #000000 dashed; padding: 0.2cm; width: auto} But the dashed border is extending to the right-edge...
20
by: Vijay Kumar R. Zanvar | last post by:
Hello, Unlike register, auto keyword can not be used to declare formal parameter(s). Is there any specific reason for this? Kind regards, Vijay Kumar R. Zanvar
6
by: Alpha | last post by:
I retrieve a table with only 2 columns. One is a auto-generated primary key column and the 2nd is a string. When I add a new row to the dataset to be updated back to the database. What should I...
5
by: Samuel | last post by:
Hi, I am running into a problem of mixing UICulture = auto and allowing users to select culture using a dropdown list. I am detecting a querystring, "setlang", and when found, setting the...
5
by: maya | last post by:
at work they decided to center divs thus: body {text-align:center} #content {width: 612px; text-align:left; margin: 0 auto 0 auto; } this works fine in IE & FF, EXCEPT in FF it doesn't work if...
22
by: nospam_news | last post by:
I currently get asked about my usage of "auto". What is it for? The keyword is clearly superflous here. In contrast to the huge majority of C/C++ developers I write definitions very explicitly...
2
by: Piotr K | last post by:
Hi, I've encountered a strange problem with Firefox which I don't have any idea how to resolve. To the point: I've <divelement with a style "height: auto" and I want to retrieve this value...
21
by: JOYCE | last post by:
Look the subject,that's my problem! I hope someone can help me, thanks
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.