473,322 Members | 1,620 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,322 software developers and data experts.

what in place of session variables

Max
My website is encountering loss of Sessions most probably due to hosting
service. Cannot use session mode other than InProc since server is not under
my complete control. Main problem is that I save user authentication info
into session variables, and once these variables fall to Null, user is sent
again to the login page.

Is there any alternative idea to the use of session variables, anybody has
an option.. A question is , how a protected page could know that user has
passed authentication. Cookies ? Querystring variables ?

Thanks
Max
Aug 27 '08 #1
3 929
Using the ASP.Net membership provider that was available starting in ASP.Net
2.0. It has most of the logic all set for you and will set the encrypted
forms authentication cookie for you as well.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - Expression

"Max" <mmwrote in message
news:48**********************@reader1.news.tin.it. ..
My website is encountering loss of Sessions most probably due to hosting
service. Cannot use session mode other than InProc since server is not
under my complete control. Main problem is that I save user authentication
info into session variables, and once these variables fall to Null, user
is sent again to the login page.

Is there any alternative idea to the use of session variables, anybody has
an option.. A question is , how a protected page could know that user has
passed authentication. Cookies ? Querystring variables ?

Thanks
Max
Aug 27 '08 #2
Once Membership is installed the use of the Profile can be used to store
session data rather easily.

"Mark Fitzpatrick" <ma******@fitzme.comwrote in message
news:eT**************@TK2MSFTNGP05.phx.gbl...
Using the ASP.Net membership provider that was available starting in
ASP.Net 2.0. It has most of the logic all set for you and will set the
encrypted forms authentication cookie for you as well.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - Expression

"Max" <mmwrote in message
news:48**********************@reader1.news.tin.it. ..
>My website is encountering loss of Sessions most probably due to hosting
service. Cannot use session mode other than InProc since server is not
under my complete control. Main problem is that I save user
authentication info into session variables, and once these variables fall
to Null, user is sent again to the login page.

Is there any alternative idea to the use of session variables, anybody
has an option.. A question is , how a protected page could know that
user has passed authentication. Cookies ? Querystring variables ?

Thanks
Max
Aug 27 '08 #3
Max
But can the Membership store all types of variable (arraylist for example) ?
Max
Aug 28 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Larry Woods | last post by:
I am losing Session variables, but only those that are set in the page previous to a redirect to a secure page. Anyone seen ANY situation where Session variables just "disappear?" Note that...
2
by: What-a-Tool | last post by:
I am using a couple of session variables in my site. From what I can figure out, session information is stored on the users computer in a cookie - If the user has cookies disabled, do session...
6
by: Lina Manjarres | last post by:
Hello, I have a session variable in a login page. Then I go to a form page where I uses the ProfileID and the UserID. Then I go to a result page where I would like to use the UserID as a filter,...
3
by: Earl Teigrob | last post by:
I have a small application that consists of one aspx page with inline and dynamically loaded user and custom controls. When the page loads, I need to calculate a set of global SESSION variables...
0
by: Alexander Widera | last post by:
hello all, i have a problem ... like I already discussed in the thread "session empty" I have the following problem: I created a completely new web... i added 2 files: sessiontest1.aspx:
18
by: BillE | last post by:
When a user opens a new IE browser window using File-New-Window the integrity of an application which relies on session state is COMPLETELY undermined. Anyone who overlooks the fact that...
26
by: BillE | last post by:
Some ASP.NET applications use Session Variables extensively to maintain state. These should be re-written to use viewstate, hidden fields, querystring, etc. instead. This is because if a user...
7
by: Ross Culver | last post by:
I need to ensure that session variables are removed whenever someone leaves my web site. My understanding is that this should be happening automatically with the session mode set to InProc. But...
1
by: Andy | last post by:
I want to store a key in an ASP.NET session variable that points to an ASP.NET page cache. The page cache contains an XML document that holds a draft of the user's work. After the user is...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
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: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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...

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.