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

no session cookie??

I have an ASP.NET website and in my web.config file i have sessions defined as: <sessionState mode="InProc" cookieless="UseCookies" timeout="20"/>


But for some reason i dont get a sessionID cookie(ASP.NET_SessionId), and it is throwing off a lot of my session timeout detect code. Has anyone run into this, or knows what is going on??

Thanks
Mar 5 '07 #1
4 1223
hey..were you able to solve this problem?
Jun 4 '07 #2
Plater
7,872 Expert 4TB
I have none of that in my web.config and it all works fine for me?
Jun 4 '07 #3
Frinavale
9,735 Expert Mod 8TB
I have an ASP.NET website and in my web.config file i have sessions defined as: <sessionState mode="InProc" cookieless="UseCookies" timeout="20"/>


But for some reason i dont get a sessionID cookie(ASP.NET_SessionId), and it is throwing off a lot of my session timeout detect code. Has anyone run into this, or knows what is going on??

Thanks
How are you retrieving the information from your session?
I don't understand how you're having a problem...this works for me without incident.

-Frinny
Jun 4 '07 #4
Plater
7,872 Expert 4TB
You can check to make sure the cookie is even being sent.
open up telnet (or hyperterminal if you know how).
if your server is at say http://www.mydomain.com, in telnet use:
open www.mydomain.com 80

it will be a little confusing because your curser key will move to top-left where there is probably already text, but then type
GET / HTTP/1.0
and hit enter twice. Your server will reply with the ascii-text associated with your default webpage. Scroll up to the top and you will see header info like:
Expand|Select|Wrap|Line Numbers
  1. HTTP/1.1 200 OK
  2. Connection: close
  3. Date: Mon, 04 Jun 2007 14:38:07 GMT
  4. Server: Microsoft-IIS/6.0
  5. X-Powered-By: ASP.NET
  6. X-AspNet-Version: 2.0.50727
  7. Set-Cookie: ASP.NET_SessionId=nxrvgk45adlkxbaci2w5yz45; path=/; HttpOnly
  8. Cache-Control: private
  9. Content-Type: text/html; charset=utf-8
  10. Content-Length: 3815
  11.  
As you can see my sessionid cookie was sent, you can check in a similar way. Also (in Iexplorer at least) look for a little eyeball in the buttom right status bbar, it's the privacy report for your webpage and *should* tell you if any cookies were rejected.
Jun 4 '07 #5

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

Similar topics

27
by: mrbog | last post by:
Tell me if my assertion is wrong here: The only way to prevent session hijacking is to NEVER store authentication information (such as name/password) in the session. Well, to never authenticate...
2
by: Amit D.Shinde | last post by:
Hello Experts.. I need some help regarding cookies and session objects and also global.asa file I am creating one cookie when a user logs in on my website. The cookie stores the login name of...
3
by: M Wells | last post by:
Hi All, Just wondering how you go about changing the value of a session cookie via javascript? I have a PHP page that sets a session cookie when it first loads. I'd like to be able to change...
4
by: Chris | last post by:
When a request comes into a page on my ASP.net site and a session is not found, I want to detect whether the request is an initial request or if the user did have a session going that has now been...
5
by: Ĺženol Akbulak | last post by:
Hello; I use in my web application FormsAuthentication. Also I use Session state (InProc). When a user logged in, I can read Session parameters. (For example Session). Problem is that, when...
13
by: Goofy | last post by:
Does anyone know how I can kill a session by session ID ? -- Goofy
4
by: rgparkins | last post by:
Hello I am running out of time with a problem I have running PHP 5.04 and Apache 2.0 and really need help :(. I have a page that stores a variable in session but each time I reload that page the...
2
by: Gordon Burditt | last post by:
I had this idea about preventing session fixation, and I'm wondering what anyone else thinks about it. The idea is, essentially, don't allow session ids that YOUR PHP didn't generate (and aren't...
11
by: Glenn | last post by:
Hi I've been experimenting with managing state using the Session object. I've created a simple WS with a couple of methods, one which sets a string value, another that retrieves it. Each...
9
by: Josh | last post by:
I run a Joomla website and am familiar with php in some but not all aspects. Currently I am trying to find some solutions related to session handling. Am I correct in saying that "login" is kept...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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.