Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms 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 August 2nd, 2004, 11:31 PM
Registered User
 
Join Date: Aug 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help

Form login on "Default.asp" i want after login=true then visible form login from "Default.asp". Thanks.
mail: [email protected]

 
Old August 3rd, 2004, 03:52 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 479
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to surendran Send a message via Yahoo to surendran
Default

hi thanhh
I can't understand your question...
Any way check this link some time it will help you....
http://p2p.wrox.com/topic.asp?TOPIC_ID=16917


surendran
(Anything is Possible)
 
Old August 3rd, 2004, 04:51 AM
Registered User
 
Join Date: Aug 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I want visible Form login after login with User and Password

 
Old August 3rd, 2004, 05:11 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 479
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to surendran Send a message via Yahoo to surendran
Default

then use a mode like, mode="add"
after login
if mode="add" then
'one
else
'two
end if

surendran
(Anything is Possible)
 
Old August 3rd, 2004, 05:55 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi thanhh83,

Can you explain more on what you are trying to achieve? Just the one line query doesn't explain all that you wanted.

Cheers!

_________________________
- Vijay G
Strive for Perfection
 
Old August 4th, 2004, 02:22 AM
Registered User
 
Join Date: Aug 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It the same Forum p2p.wrox.com. If I login with User and Password and click GO then visible Form login and I can edit Profile.
 
Old August 4th, 2004, 06:10 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

I am not sure what you mean by "visible Form login", if I am not wrong, you should be looking for setting up login state for a user that denotes that a user has logged in successfully.

Once the user enters the username and password, check that against database, if the username and password match, if so, set a session variable say Login=True
Code:
session("Login")=True
And proceed to display the other pages that are relavant to that user. On navigation to any page from there on you got to check if the session variable Login=True, if that hold other than TRUE.
Code:
If session("Login")<> True then 
    Session.Abandon
    Response.Redirect("SessionExp.asp")
End If
Be it EMPTY which means "" or FALSE or anything else, don't show that page to the user, by abandoning the session and taking him to a common page that says, his session timed out/he is not logged in.

Default time for Session Expiry is 20 mins, which can be set to lesser or greater values at your desire, using
Code:
Session.Timeout=5
For more details on Session object visit these URLs ASP Session Object Reference

ASP Session Object

Hope that helps.
Cheers!

_________________________
- Vijay G
Strive for Perfection









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