Solved

Creating a session table

Posted on 2014-09-24
6
94 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
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
I have a large data set and a SSIS package. How can I load this file in multi threading?
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

815 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now