LJnel Posted May 18, 2006 Share Posted May 18, 2006 hey there'i am using a keypad where the user enter his pin and thenread it from the db, but i need to assign a session..i am using webmatrix how do i do this? tanks Link to comment Share on other sites More sharing options...
pulpfiction Posted May 22, 2006 Share Posted May 22, 2006 Web Matrix is a community-supported, WYSIWYG application development tool for ASP.NET.So i guess creating sessions will not be different. If you could be more detailed it will be easier for any suggestion... Link to comment Share on other sites More sharing options...
LJnel Posted May 24, 2006 Author Share Posted May 24, 2006 Web Matrix is a community-supported, WYSIWYG application development tool for ASP.NET.So i guess creating sessions will not be different. If you could be more detailed it will be easier for any suggestion...<{POST_SNAPBACK}> hey i just want to ask u something simpleif i hav a normal log in, username and password, when i enter the username and password, how do i now continue ??? do i assign that username to a session and the password to another session?(can u maybe provide me with a code example of how the assignment process works and then how to go and look in you DB ms access).and a last questtion, how do i now keep that session thru out that user's browsing??thank you Link to comment Share on other sites More sharing options...
aspnetguy Posted May 24, 2006 Share Posted May 24, 2006 you would check the password and username against your database to see if it is a match. If it is I usually put the username into a session. SO when checking a Session if it equals null then the user is logged in if it is equal to something, they are logged in. Link to comment Share on other sites More sharing options...
pulpfiction Posted May 24, 2006 Share Posted May 24, 2006 This might give you some idea about user login.http://webmonkey.wired.com/webmonkey/03/30...?tw=programming Link to comment Share on other sites More sharing options...
pulpfiction Posted May 24, 2006 Share Posted May 24, 2006 Once you create a session it will last for some time. This time, for how long the session should last can be set. In the web.config file, look for this<sessionState .................... ................... .................... timeout="20" />The timeout attribute sets the length in minutes before a session will expire. here sessions will last for 20 mins. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now