ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old September 24th, 2003, 04:14 PM
Keithb Keithb is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: Bugaha
Posts: 17 Keithb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
session variable dropping

I am really getting frustrated by this thing. This is a really interesting problem.

I've got a page that builds an sql statement, then I store that in a cookie. On my menu, I check the contents of the cookie, and if it's not empty, I provide a link to the page, using the statement in the cookie to hit the database. That way, they have a link for "last search".

Anyway, here's the problem. I noticed that when the pages would load, sporadically the cookie would be reset to "", and there was nothing in it. It did not always happen. I believe that there is a limit to the number of cookies you can use per domain, so I decided to try using a session variable instead. Now, I have found out that the session itself is dropping, as if the user's login had expired. I'm really not sure why that would be happening.

The site uses frames, could this be posing a problem?

Is there a limit to the number of session variables you can use?

Any idea why this might be happening? Is there some setting on the server itself that might have been changed that might affect this?

Reply With Quote
  #2  
Old September 24th, 2003, 07:35 PM
unatratnag unatratnag is offline
Average Intelligence
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2003
Location: Ohio/Chicago
Posts: 678 unatratnag User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 22 sec
Reputation Power: 6
Send a message via AIM to unatratnag
do you have buffering i think it's called turned on? Cookies are browser level so you can't write to them once something has been written to the browser...ergo, your cookie may be blank

Reply With Quote
  #3  
Old September 24th, 2003, 07:37 PM
karsh44's Avatar
karsh44 karsh44 is offline
Just another guy
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jun 2003
Location: Wisconsin
Posts: 2,915 karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 13 h 6 m 22 sec
Reputation Power: 76
Of course, he's using session variables now...

Reply With Quote
  #4  
Old September 24th, 2003, 10:30 PM
Keithb Keithb is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: Bugaha
Posts: 17 Keithb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I may just go through the hassle of changing it back to cookies just to try the buffering. No...I hadn't thought of that.

Reply With Quote
  #5  
Old September 26th, 2003, 09:38 AM
Keithb Keithb is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: Bugaha
Posts: 17 Keithb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Did some research on it. I'm convinced that it's because the session variables are not persisting between frames.

Ultimately, I'd like to tell my boss to give me a week to re-write the site w/out frames (I did not originally write it), but for the time being, it looks like cookies will have to be used. I think when the session variable isn't found, it's causing the cookies to drop somehow.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > session variable dropping


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway