473,320 Members | 1,900 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.

Storing sessions

Can anyone tell me what is the best way to store sessions into database in order to recognize that user next time he access the site?I thought about IP address but then I remembered that it is different every time.What thing regarding a user is always the same?
Nov 5 '07 #1
6 1131
MarkoKlacar
296 Expert 100+
Hi,

the best practice for this is to store a username and a password.
When a user logs in, you can start a session based upon his username.
Start with this.

Let me know if you need some more information.

Cheers
Nov 5 '07 #2
I came up with the same idea but I want to know something else.Assume that certain user wants to remain logged in that means that he doesn't need to fill in username and password fields again.How can I know that it's him again?
Nov 5 '07 #3
ak1dnar
1,584 Expert 1GB
First, why you need to track the user visits? as an example, do you want to store some customized style settings for individual users?
You can get the IP address of the user, but how do you plan to filter the users with shared IPs.
Nov 5 '07 #4
I could make some kind of voting system allowing users to vote only once in,say,24 hours or similar.This is just one example.Now you see why I've posted the question
Nov 5 '07 #5
ak1dnar
1,584 Expert 1GB
There are lots of sample scripts you can find by googling. Thanks.
Nov 5 '07 #6
Atli
5,058 Expert 4TB
Hi.

Have you considered using Cookies?
Nov 5 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Francisco | last post by:
I have this problem: I have a database with information about games, and users are able to vote for them. Everytime a user votes for a game I store the unique game name into a session variable (an...
3
by: dave | last post by:
Hello there, I am at my wit's end ! I have used the following script succesfully to upload an image to my web space. But what I really want to be able to do is to update an existing record in a...
6
by: Rob Meade | last post by:
Hi all, At work we have 2 servers in a cluster for our web apps. One problem we have experienced (along with many others!) - is that if a user is logged into one of the applications on server...
14
by: mjkahn | last post by:
I've read (and read!) that you shouldn't store objects in Session variables. I've read these reasons: - The object takes up memory that may not be freed until the session times out. Better to...
4
by: Jerry J | last post by:
I have a web application that has a menu item that allows the client to chose a style (changes the color scheme). What are my options for storing that information so the next time the client hits...
7
by: py | last post by:
how feasible is it to cache an entire page's content in a session variable? i am already doing it and it works fine, except i am afraid of scalability issues. what is the best way to test this? ...
1
by: andchoi | last post by:
I am wondering whether this is the best way to do this. Would love to hear what people think. Here is the scenario: I have this ASP.NET 2.0 page which allows user to enter some parameters and...
2
by: Anthony Smith | last post by:
I have read the message boards in this group and others. I still have not been able to pull my obect out of a session and use it. Here is how I store it in a session: <? //Include the UserClass...
1
by: FrEaKmAn | last post by:
Hi I found this article, I hope you're ok with posting links to other sites http://shiflett.org/articles/storing-sessions-in-a-database basically it's nice way to store sessions in a...
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
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...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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)...
1
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...
1
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.