.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgramming.NET Development

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 ASP Free Forums Sponsor:
  #1  
Old September 14th, 2000, 12:38 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
session variables

<i><b>Originally posted by : sam duncan (sam.duncan@caradon.com)</b></i><br /><br />ok, please help.<br /><br />if i create a session variable in page1.asp like this:<br /><br />Session("myName")="Sam"<br /><br />and try to read it from page2.asp like this:<br /><br />Response.Write ("Name is = " &Session("myName"))<br /><br />why is it blank?<br /><br />I have spent all day, playing with arrays, collections etc, if I access the variable from within the same page, ie: page1.asp or the global.asa page its ok, I have also noticed the Sub Session_OnStart is called in the global.asa page every time I log into a page, regardless if I am currently in a session, this doesnt seam right, as i thought the Sub Session_OnStart was only called once per session?<br /><br />Please help! I am only just beginning asp and really need to get my head around this so i can begin persisting and sharing data amoungst single user sessions and multiple users.<br /><br />Thanks in anticipation!<br /><br />Sam x<br /><br /> <br />

Reply With Quote
  #2  
Old September 16th, 2000, 02:17 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : Gerhard (wentink@webset.nl)</b></i><br /><br />Be sure that your web is an application. In IIS 5: Right click the web in a management console, choose "properties" and click Create.<br /><br />------------<br />sam duncan at 9/14/2000 10:38:47 AM<br /><br /><br />ok, please help.<br /><br />if i create a session variable in page1.asp like this:<br /><br />Session("myName")="Sam"<br /><br />and try to read it from page2.asp like this:<br /><br />Response.Write ("Name is = " &Session("myName"))<br /><br />why is it blank?<br /><br />I have spent all day, playing with arrays, collections etc, if I access the variable from within the same page, ie: page1.asp or the global.asa page its ok, I have also noticed the Sub Session_OnStart is called in the global.asa page every time I log into a page, regardless if I am currently in a session, this doesnt seam right, as i thought the Sub Session_OnStart was only called once per session?<br /><br />Please help! I am only just beginning asp and really need to get my head around this so i can begin persisting and sharing data amoungst single user sessions and multiple users.<br /><br />Thanks in anticipation!<br /><br />Sam x<br /><br /> <br />

Reply With Quote
  #3  
Old April 22nd, 2002, 09:41 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : Doug Hagerman (DougH@Usbs-Panels.com)</b></i><br />Ok, I am stuck with the same Session variable problem from page to page.<br /><br />I set it on one page, and on the next it is blank.<br /><br />I have even made sure the Folders are recorded as applications as previously suggestion in this comment session.<br /><br />So any other clues someone can give me?<br /><br />Thanks,<br />Doug<br /><br /><br /><br />------------<br />Gerhard at 9/16/2000 12:17:31 AM<br /><br /><br />Be sure that your web is an application. In IIS 5: Right click the web in a management console, choose "properties" and click Create.<br /><br />------------<br />sam duncan at 9/14/2000 10:38:47 AM<br /><br /><br />ok, please help.<br /><br />if i create a session variable in page1.asp like this:<br /><br />Session("myName")="Sam"<br /><br />and try to read it from page2.asp like this:<br /><br />Response.Write ("Name is = " &Session("myName"))<br /><br />why is it blank?<br /><br />I have spent all day, playing with arrays, collections etc, if I access the variable from within the same page, ie: page1.asp or the global.asa page its ok, I have also noticed the Sub Session_OnStart is called in the global.asa page every time I log into a page, regardless if I am currently in a session, this doesnt seam right, as i thought the Sub Session_OnStart was only called once per session?<br /><br />Please help! I am only just beginning asp and really need to get my head around this so i can begin persisting and sharing data amoungst single user sessions and multiple users.<br /><br />Thanks in anticipation!<br /><br />Sam x<br /><br /> <br />

Reply With Quote
Reply

Viewing: ASP Free ForumsProgramming.NET Development > session variables


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