Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 29th, 2004, 01:09 AM
Authorized User
 
Join Date: Sep 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default User ID Validation

Hi

I want to validate the user id in asp.net using vb.net. Please help me what is the better way to check to either the user id is expired or not, here I am using cookies for this purpose. I am creating one cookie with user ID in login page and I check that cookie in each and every page, if the cookie is not expired again I reset the time expired. if the cookie is expired i call the login page. It is working very fine, but I did not get satisfaction because it is some cumbersome to write the code in each and every page. Please help me if u know any other simple way.

Advanced thanks.
RK
__________________
RK
 
Old November 29th, 2004, 10:09 AM
Friend of Wrox
 
Join Date: Feb 2004
Posts: 177
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Try with Session Variables, i.e. at the login page verify the Login Id and assign to session variable, then in each page you can refer to the session variable.


It is not how much we do,
but how much love we put in the doing.

-Mother Theresa
 
Old November 30th, 2004, 12:53 AM
Authorized User
 
Join Date: Sep 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi
 Thank you, How to set the expired time using session varibles, i dont want to asking login agin if the user taking any action before the session is expired, so i have to reset the expired time in each and every page load event , if the the user could not take any action before the session is expired(if he stop the working) then my page asking login again. this is my requirement. How to do this using session variables?
Plzzzzz replay me....I am waiting for Your replay
Thank You
RK

RK
 
Old November 30th, 2004, 07:53 AM
Friend of Wrox
 
Join Date: Feb 2004
Posts: 177
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Try the following links

Basic Session Object and its properties
http://www.aspfree.com/c/a/ASP.NET/A...-in-ASP.NET/1/

I think this solution is good for you
http://www.dotnet247.com/247reference/msgs/6/30795.aspx

The session expires after the SessionTimeOut only if the user is not making a request for the TimeOut period i.e. if user makes a request then the session will always remain for the next TimeOut minutes.


It is not how much we do,
but how much love we put in the doing.

-Mother Theresa





Similar Threads
Thread Thread Starter Forum Replies Last Post
Session ID swapping from user to user... greenwar VS.NET 2002/2003 3 September 7th, 2007 08:44 AM
validation for user id & passwrod in vb.net [email protected] Visual Studio 2005 6 August 12th, 2007 11:19 AM
User control ID collision arcuza ASP.NET 1.0 and 1.1 Professional 1 May 26th, 2006 08:00 AM
what is the password and user id for ........! Random Servlets 1 November 8th, 2005 02:59 AM
Get USER ID in WINDOWS Application? Ron Howerton VB.NET 2002/2003 Basics 2 May 5th, 2005 02:13 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.