If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Can I access Session state variables in web.config appSettings?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-15-03, 22:14
GimpBoy GimpBoy is offline
Registered User
 
Join Date: Sep 2003
Posts: 5
Lightbulb Can I access Session state variables in web.config appSettings?

Hello,

I downloaded an application from ezReserve.com, and they supply a method of automatically logging in the user. To do this, within the appSettings section of the web.config file you must enter:

<add key="ezAuthentication" value="AutoSignIn;username;password" />

Now, I would love to use this feature for my application, but I can't figure out if its possible to access Session state variables within the web.config file. I need to replace "username" and "password" based on the user that is currently logged into my application.

User name is accessed through User.Identity.Name;
The password is stored in a session variable, Session["Password"];

Is this possible? Thanks.
Reply With Quote
  #2 (permalink)  
Old 12-28-03, 22:06
tdavisjr tdavisjr is offline
Registered User
 
Join Date: Dec 2003
Posts: 7
Re: Can I access Session state variables in web.config appSettings?

Wrong forum buddy. Try the ASP.NET or .NET forums on this website

Quote:
Originally posted by GimpBoy
Hello,

I downloaded an application from ezReserve.com, and they supply a method of automatically logging in the user. To do this, within the appSettings section of the web.config file you must enter:

<add key="ezAuthentication" value="AutoSignIn;username;password" />

Now, I would love to use this feature for my application, but I can't figure out if its possible to access Session state variables within the web.config file. I need to replace "username" and "password" based on the user that is currently logged into my application.

User name is accessed through User.Identity.Name;
The password is stored in a session variable, Session["Password"];

Is this possible? Thanks.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On