global login page

  • Thread starter Thread starter pherms
  • Start date Start date
P

pherms

Can anybody help me out?

Here's what I want to do:

I'm redesigning my intranet site. I'm going to use .NET framework 2.0 for
this.
I get the username with request.servervariables("auth_user") which gives me
the domain username. I put this in a string and use this to query a database.
From the result I get from this query, I want to put four database fields in
4 strings.
Currently I'm using classic asp and I accomplished this by using a include
file on every page. How can I accomplish this in ASP.NET, so that these
strings are available to all ASP.NET applications?

thanks in advance
 
There are two ways:

1. Put "these strings" (I don't know what they are) in Session
2. If you need to "create them" on "every request", look into the interface
IHttpModule.
 
There are two ways:

1. Put "these strings" (I don't know what they are) in Session
2. If you need to "create them" on "every request", look into the interface
IHttpModule.
 
To put "these strings" in Session, check out the Session OnStart event in
the global.asax file.

"Gaurav Vaish (www.EdujiniOnline.com)"
....
1. Put "these strings" (I don't know what they are) in Session
....


Tor Bådshaug
tor.badshaug(AT)bekk.no
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top