| | |
Get a Session state from a Query
Please support our ASP.NET advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Mar 2007
Posts: 1
Reputation:
Solved Threads: 0
HI
I was wondering if anyone knew of a way to store a session state variable from a Query based on information in an access database
What i want to do is when the user logs in they supply their email address and password to log into site I want to store their CustomerID as a Session Variable to track them as they use the site, is this possible
Thanks
I was wondering if anyone knew of a way to store a session state variable from a Query based on information in an access database
What i want to do is when the user logs in they supply their email address and password to log into site I want to store their CustomerID as a Session Variable to track them as they use the site, is this possible
Thanks
•
•
Join Date: Jan 2005
Posts: 33
Reputation:
Solved Threads: 0
Yeah it is possible the best thing to do is connect to a database using the datareader potentially then read and compare fields until you find the one you want. Once you find the user you need add it to a Session variable.
If you are wanting to track where they have been and are entering it into the DB then you will need to on page load just do an insert into the DB of the current page they are on.
Not sure what you are wanting but that is the genearl idea how to do it. I usually don't ever use an access database so i can't help you with that.
If you are wanting to track where they have been and are entering it into the DB then you will need to on page load just do an insert into the DB of the current page they are on.
Not sure what you are wanting but that is the genearl idea how to do it. I usually don't ever use an access database so i can't help you with that.
•
•
Join Date: Jan 2006
Posts: 275
Reputation:
Solved Threads: 11
dont you use the built in memebership providers? all the information is done for you. When a user is logged in and you need to know their information at any time just call Membership.GetUser() and it will return the current logged in user who made the request. It caches it too if you call it more than once in the page. Then you can use the profile provider too.
Much more powerful and easier to use than roll your own
Much more powerful and easier to use than roll your own
![]() |
Similar Threads
- Updated : Simple ASP.Net Login Page (ASP.NET)
- Syntax error (missing operator) in query expression 'OrderNo='.HELP PLEASE (ASP)
- Forms authorization, only want a few links (ASP.NET)
- Session Variable clashing (ASP.NET)
- Create Windows Authentication (VB.NET)
Other Threads in the ASP.NET Forum
- Previous Thread: How to transfer values between ASP.NET pages
- Next Thread: 404 Error on Postback
Views: 2011 | Replies: 3
| Thread Tools | Search this Thread |
Tag cloud for ASP.NET
.net 2.0 activexcontrol advice ajax alltypeofvideos anathor application asp asp.net bc30451 bottomasp.net box browser button c# checkbox commonfunctions complex connection dataaccesslayer database datagridview datagridviewcheckbox datalist development dgv dropdownlist dynamically edit editing expose feedback fileuploader fill flash form formatdecimal formview google gridview gudi iframe iis javascript list listbox login microsoft migration mono mouse mssql news numerical opera panelmasterpagebuttoncontrols parent problem project radio redirect registration relationaldatabases reportemail richtextbox rows save schoolproject search security select services session silverlight smartcard smoobjects software sql sql-server sqlserver2005 suse textbox theft tracking unauthorized validation vb.net video videos view vista visualstudio web webapplications webdevelopemnt webprogramming webservice xsl youareanotmemberofthedebuggerusers





