Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - problem in using session
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

problem in using session

 Post Reply Post Reply
Author
chakad View Drop Down
Newbie
Newbie
Avatar

Joined: 11 December 2002
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote chakad Quote  Post ReplyReply Direct Link To This Post Topic: problem in using session
    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

Back to Top
weppos View Drop Down
Groupie
Groupie


Joined: 23 May 2003
Status: Offline
Points: 173
Post Options Post Options   Thanks (0) Thanks(0)   Quote weppos Quote  Post ReplyReply Direct Link To This Post 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)
%>


Back to Top
chakad View Drop Down
Newbie
Newbie
Avatar

Joined: 11 December 2002
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote chakad Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.