471,354 Members | 2,030 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,354 software developers and data experts.

How to ASP -> ASP.NET

VK
Folks,

In classic ASP, in order to prevent users from trying url directly(maybe
to see some sensitive HTML files) without logging in, I have an asp file
which mains the session("login")=1 variable, which is set as soon as
user logins and include it in all those pages. That way when they try
the url directly, it checks to make that login is 1 and then lets them
in otherwise redirects to error page.

How can the same thing be achieved in ASP.NET?

Many thanks.
*** Sent via Developersdex http://www.developersdex.com ***
Jul 21 '05 #1
3 1029
You can do it exactly the same way if you like. You can also use the built
in Forms Authentication of .NET or you can store the logged in marker in a
database to get away from sessions.
"VK" <vk@vk.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
Folks,

In classic ASP, in order to prevent users from trying url directly(maybe
to see some sensitive HTML files) without logging in, I have an asp file
which mains the session("login")=1 variable, which is set as soon as
user logins and include it in all those pages. That way when they try
the url directly, it checks to make that login is 1 and then lets them
in otherwise redirects to error page.

How can the same thing be achieved in ASP.NET?

Many thanks.
*** Sent via Developersdex http://www.developersdex.com ***

Jul 21 '05 #2
VK
Thanks Scott for speedy reply.

We are not using database for this project as it is only a temp solution
and hard coding userid and password information as well.

do you happen to have a link handy for forms method of authentication
maybe example?
*** Sent via Developersdex http://www.developersdex.com ***
Jul 21 '05 #3
http://www.howtodothings.com/ViewArt...spx?Article=31

"VK" <vk@vk.com> wrote in message
news:ul****************@TK2MSFTNGP10.phx.gbl...
Thanks Scott for speedy reply.

We are not using database for this project as it is only a temp solution
and hard coding userid and password information as well.

do you happen to have a link handy for forms method of authentication
maybe example?
*** Sent via Developersdex http://www.developersdex.com ***

Jul 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Christian Schmidbauer | last post: by
2 posts views Thread by Donald Firesmith | last post: by
34 posts views Thread by Mark Moore | last post: by
11 posts views Thread by Les Paul | last post: by
reply views Thread by vdex42 | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.