473,397 Members | 2,077 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,397 software developers and data experts.

ASP.NET Session Lost in Opera

4
Hi,

I have created a test Web Application Project.

Default.aspx just has a button.

Page_Load has following code:
Expand|Select|Wrap|Line Numbers
  1.         protected void Page_Load(object sender, EventArgs e)
  2.         {
  3.             if (!IsPostBack)
  4.             {
  5.                 Response.Write("Session Id:" + Session.SessionID);
  6.             }
  7.         }
  8.  
  9.         protected void Button1_Click(object sender, EventArgs e)
  10.         {
  11.            Response.Write("Session Lost! Session Id:" + Session.SessionID );
  12.        }
Issue: SessionId keeps changing on every button click. In short, Session lost! This is breaking my well working application (IE/FireFox/Safari).

Any help would be appreciated!

Thanks,
NilMS
Oct 26 '07 #1
8 2304
Plater
7,872 Expert 4TB
Does opera allow the session cookie or does it block it?
Oct 26 '07 #2
NilMS
4
It doesnt seem to pass Session cookie back to the server.

I have Cookie setting being "Accept All Cookies" in Opera 9.

However, I could get around it by setting cookieLess = "true". Doesnt seem to be an acceptable resolution though.
Oct 29 '07 #3
Plater
7,872 Expert 4TB
Yeah, I thought as much. Was pretty sure that I had heard that Opera doesn't do the Session Cookie stuff correctly.
Don't think you can do much else about except wait for Opera to get on the ball and fix it?
Oct 29 '07 #4
Frinavale
9,735 Expert Mod 8TB
This seems a bit strange to me because I use Sessions in my application and do testing with Opera....(the version I've been using lately is 9)

Double check your Cookies settings....
Oct 29 '07 #5
Plater
7,872 Expert 4TB
Perhaps it is a security setting and not just a cookie settings? Like what level of "protection" you have for your "zones" or something in the opera browser?
Oct 29 '07 #6
NilMS
4
This is weard!

Got back to my app just to try the suggestions in replies. Went to double check if its "Accept Cookies" - yes it was. Browsed the website and it worked fine.(without making any change or even getting to ZONE stuff)

hmmm.... Not sure if behavior will be the same now onwards. Planning to test it more to determine its "random" behavior.
Nov 1 '07 #7
NilMS
4
Lately I realized what was the difference.. I was trying on my new machine where Opera was installed afresh. If I had my old machine, I would have certainly uninstalled/reinstalled Opera to see if that fixes my session issue. But I would recommend that as a worthy try.
Nov 16 '07 #8
Frinavale
9,735 Expert Mod 8TB
Lately I realized what was the difference.. I was trying on my new machine where Opera was installed afresh. If I had my old machine, I would have certainly uninstalled/reinstalled Opera to see if that fixes my session issue. But I would recommend that as a worthy try.

Thanks for the follow up NilMS :)
Nov 16 '07 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Jeremy Epstein | last post by:
I've got a 4-page form that lets users enter a whole lot of information, which is then submitted and emailed at the end. All the fields are stored as session data. The whole thing works fine: ...
7
by: Billy Jacobs | last post by:
I am having a problem with my session variable being set to Null for no apparent reason. I am declaring it like the following when the user logs in. dim objUserInfo as new clsUserInfo 'Set...
6
by: Tony G. | last post by:
Hi there, I have an APS 3 application, running on a Windows 2003 Web edition server - it is a very busy website, and when users are click on certain links (membership info), a new window i...
4
by: Edward Yang | last post by:
This does not happen frequently, but does happen in rare unkown cases. For example, at the time I'm writing this post, I'm having this problem again. The test page I'm browsing simply displays...
3
by: William | last post by:
Hi I have an ASP.NET application that connects to an Access database. Everything works fine except for the Session object. Data in the session object is lost after I've made a call to the...
7
by: Erik | last post by:
I have an application that uses sessions variables a lot but one I publish the application on the prod server these variables are lost. The application is written i c# 2.0 and I've set the...
3
by: HLady | last post by:
I posted earlier about this, I have an application and a sequence of activities will cause the session to restart. My code will go to session_start right after I execute a Response.Redirect(mypage)...
2
by: maxkumar | last post by:
Hi, I am running a ASP.NET 1.1 site on Win Server 2003 with IIS 6.0. The website has been running for about 1.5 years now. In the past, we used to have random cases of session variables getting...
43
by: davidkoree | last post by:
I mean not about cookie. Does it have something to do with operating system or browser plugin? I appreciate any help.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.