473,320 Members | 1,865 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,320 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 2087
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
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
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: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.