Solved

Creating a session table

Posted on 2014-09-24
6
96 Views
Last Modified: 2014-09-26
Sorry for the novice question here. I'm working on a database design and I'm trying to figure out how to create a session table. For example, if someone logs into the application and then gets timed out, how can I keep their session login information so when they come back to the application it remembers who they are and can take them right back to where they were in the application. Is there an article that explains how to create/store a users session information for retrieval and bringing them back to the application where they were and continuing where they left off?  See the embedded image for the current design.

database diagram
Thanks for any help.
Regards
0
Comment
Question by:-Dman100-
  • 3
  • 2
6 Comments
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 40342894
What 'session' are you referring to?
0
 

Author Comment

by:-Dman100-
ID: 40342906
Hi Dave,

Thank you for replying to my post.  My apologies if my explanation wasn't clear.  I was referring to the user session when a user logs into the application.  Does this help explain a little better?
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 40342931
Only slightly.  How is the user logging in?  What kind of application?  Is it a web page on a web server?  While web servers set up 'sessions', I don't remember SQL server doing that.  You have to know what is setting up the session before you can capture any info about it.
0
Backup Solution for AWS

Read about how CloudBerry Backup fully integrates your backups with Amazon S3 and Amazon Glacier to provide military-grade encryption and dramatically cut storage costs on any platform.

 

Author Comment

by:-Dman100-
ID: 40342944
It is going to be a VB.NET web application.  Now, we are still determining if we will store the username/password in a sql table, but it will be a web application on a web server.
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 40343030
If you are going to have remote users logging in, a username/password table would be the most common way of doing that.  I don't know how to save and restore ASP session name and info on IIS.  I've done it on PHP but for the data, it would require putting the data into the data base since the session variables disappear when the session expires.
0
 
LVL 1

Accepted Solution

by:
aneesa83 earned 500 total points
ID: 40343256
The session state provider is configured in your web.config using the sessionState element. For SQL server you set the mode to SQLServer and configure a connection string.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SQL Consolidate rows 3 26
Update the value of table B with value of table A tables inner join 6 76
Convert VBA UDF to SQl SERVER UDF 4 49
SQL Server Express or Standard? 5 25
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question