Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP 3.0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old November 21st, 2005, 12:41 PM
Authorized User
 
Join Date: Mar 2005
Location: , , .
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 15 Session variables

In the exercises, for AddUsers and MenuForRegisteredUsers. I lose the Session variables. I have verified that they are there in the AddUsers script by inserting a Response.Write in the For loop. But when it is redirected to the MenuForRegisteredUsers, they are not there.

I did modify the code to use a SQL Server database instead of the Access database.

Any suggestions?

  #2 (permalink)  
Old November 22nd, 2005, 04:37 PM
Registered User
 
Join Date: May 2005
Location: , Bedfordshire, United Kingdom.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Did you copy some code to one of your files from default.asp and incluce the <% Session.Abandon %> by mistake.
  #3 (permalink)  
Old November 22nd, 2005, 06:55 PM
Authorized User
 
Join Date: Mar 2005
Location: , , .
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

No, I didn't copy any code from default.asp or introduce the Session.abandon method.

I did finally figure it out. It was PestPatrol and ZoneAlarm, both stops cookies. Now, I know why you would not use the Session variables in a production environment

  #4 (permalink)  
Old December 9th, 2005, 05:12 PM
Registered User
 
Join Date: Aug 2003
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to demiwolf
Default

A way around cookies is to send the data through hidden forms via pages. It's a tedious way to code, but it does work.



Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 15: using session variable ftor BOOK: Professional PHP 5 ISBN: 978-0-7645-7282-1 0 August 9th, 2007 01:30 AM
Session Variables in C# shikha09 C# 1 November 28th, 2006 10:38 AM
Session Variables testsubject Visual Studio 2005 8 March 8th, 2006 04:26 PM
Professional PHP5 Ch. 15 Custom Session Handler superrobotpope Pro PHP 4 February 4th, 2005 08:32 PM
Session Variables flesh_god Dreamweaver (all versions) 7 November 11th, 2003 05:52 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.