Wrox Programmer Forums
|
ASP.NET 3.5 Professionals If you are an experienced ASP.NET programmer, this is the forum for your 3.5 questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Professionals 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
 
Old January 16th, 2010, 01:59 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 596
Thanks: 1
Thanked 3 Times in 3 Posts
Question Session Error on Cookies

Hi All,

I've been wrestling with this error for some time and have not been able to determine what is happening.

When Cookies are enabled my site works fine.
When they are not I am getting all kinds of errors with the pages postback.

This all works fine locally and only shows the issue when deployed into the live environment.

The errors do not have to relate to the cookie at all, basically all postbacks on the page fail when cookies aren't enabled.

Is there any reason why this would happen?

The site is at http://www.hottesttradie.com.au/Trad...9-72a2a94cc073 (It is a good looking tradesman competition).

This is one particular tradie example, with cookies enabled this page works fine, without cookies enabled, the back next and votes buttons all fail.
(The next and back doesn't go anywhere near the request cookies)

Any advise or direction would be greatly appreciated.

Best Regards,
Rod
__________________
======================================
"They say, best men are molded out of faults,
And, for the most, become much more the better
For being a little bad."
--Shakespeare
======================================

Last edited by rodmcleay; January 16th, 2010 at 02:07 AM..
 
Old January 19th, 2010, 07:58 AM
Friend of Wrox
 
Join Date: May 2006
Posts: 107
Thanks: 1
Thanked 8 Times in 7 Posts
Default

Are you using session variables on the page?
 
Old January 20th, 2010, 11:39 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 596
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Hi,
Yes, I was, I found the solution not to use cookies for session variables.
Many thanks for you time.
Still having issues in areas where authentication is required, but I will look into those more.
Rod
__________________
======================================
"They say, best men are molded out of faults,
And, for the most, become much more the better
For being a little bad."
--Shakespeare
======================================





Similar Threads
Thread Thread Starter Forum Replies Last Post
Session cookies in global.asa mabelis Classic ASP Professional 7 August 4th, 2007 07:48 AM
Session Vs ASP cookies mikedeepak Classic ASP Professional 1 June 19th, 2006 12:25 PM
firefox session cookies problem fender79 Classic ASP Basics 0 April 11th, 2005 08:35 PM
Session without cookies kumar_sampath Pro JSP 2 October 8th, 2004 10:02 AM
session management without cookies Nazu Classic ASP Professional 3 November 14th, 2003 03:46 PM





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