473,321 Members | 1,708 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,321 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 1082
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Christian Schmidbauer | last post by:
Hello! I prepare my XML document like this way: ------------------------------------------------------- PrintWriter writer; Document domDocument; Element domElement; // Root tag
2
by: Eshrath | last post by:
Hi, What I am trying to do: ======================= I need to form a table in html using the xsl but the table that is formed is quite long and cannot be viewed in our application. So we are...
2
by: Donald Firesmith | last post by:
I am having trouble having Google Adsense code stored in XSL converted properly into HTML. The <> unfortunately become &lt; and &gt; and then no longer work. XSL code is: <script...
0
by: Arne Schirmacher | last post by:
I want to display a MySQL database field that can contain HTML markup. If I use <esql:get-string> then I get all of the database field, but all tags are escaped which is not what I want. If I use...
34
by: Mark Moore | last post by:
It looks like there's a pretty serious CSS bug in IE6 (v6.0.2800.1106). The HTML below is validated STRICT HTML 4.01 and renders as I would expect in Opera, FrontPage, and Netscape. For some...
11
by: Les Paul | last post by:
I'm trying to design an HTML page that can edit itself. In essence, it's just like a Wiki page, but my own very simple version. It's a page full of plain old HTML content, and then at the bottom,...
2
by: bissatch | last post by:
Hi, I am currently writing a simple PHP program that uses an XML file to output rows for a 'Whats New' page. Once written, I will only require updating the XML file and any pages that use the...
0
by: vdex42 | last post by:
Apologies if this has been asked before, but I haven't been able to find the answer to this yet: My problem is that .NET will not allow me to insert escaped '>' characters (i.e. &gt;) within the...
2
by: santaji | last post by:
I am getting xml string in request attribute in following format &lt;files&gt; &lt;file&gt; &lt;filename&gt;somefile.ext&lt;/filename&gt; &lt;/file&gt; &lt;files&gt; the above string I want to convert to tags. expected...
1
by: VaidehiPawar | last post by:
I am a beginner level in xml..my output page does not convert &gt &lt it shows something like this " &lt;b&gt;Location.&lt;/b&gt;&lt;br /&gt; &lt;UL&gt;&lt;LI&gt;Park Central New York " can anyone help? here is my code ...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.