Print Page | Close Window

problem in using session

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=8350
Printed Date: 01 April 2026 at 7:18am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: problem in using session
Posted By: chakad
Subject: problem in using session
Date Posted: 27 December 2003 at 3:16am

hi

i have this code in my page:

<%
session("user")="CHAKAD"
response.Write(session.SessionID)
%>

and i have this in the second page:(linked to fist page)

<%
response.write (session("user") )
response.Write(session.SessionID)
%>

i test pages in locallhost and they works .but when i send it on web server ,the vaule of  "session("user")"  is empty in second page.

and i recive diffrent sessionids in each page.

web server is iis and session state in enanbled on server.

thx




Replies:
Posted By: weppos
Date Posted: 27 December 2003 at 4:21am
Originally posted by chakad chakad wrote:

and i recive diffrent sessionids in each page.




Session values are not correctly keeped.
Check to not have a code line like

Session.Abandon()


in web pages.

I also suggest to write without space:

<% 

response.Write(Session("user"))
response.Write(Session.SessionID)
%>




Posted By: chakad
Date Posted: 27 December 2003 at 5:56am

thx for ur help

i found out where problem is, but i don't know the solution

proxy cause this problem.and i don't know how to use sessions when i have proxy(with username and password)on my  pc.




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net