loosing session variables after Response.Redirect

Discussion in 'ASP .Net' started by =?Utf-8?B?RGFiYmxlcg==?=, Jul 20, 2006.

  1. I set some strings and integers in Session but when I get to my redirected
    page the values are null.


    I'm running on localhost Windows XP Pro but using remote SQL 2005 database.
    Not doing anything with caching. I am using Master files and sub master
    files. Also using a bit of Atlas but none of this should be clearing my
    session variables?

    <%@ Page Language="C#" MasterPageFile="~/Admin.master"
    AutoEventWireup="true" CodeFile="VanPoolList.aspx.cs"
    Inherits="ssl_VanPoolList" %>


    Any help would be greatly appreciated.
     
    =?Utf-8?B?RGFiYmxlcg==?=, Jul 20, 2006
    #1
    1. Advertising

  2. You are probably running into this problem:
    http://weblogs.asp.net/bleroy/archive/2004/08/03/207486.aspx

    the solution (as outlined in that entry), is to use
    Response.Redirect("whatever", false);

    karl

    --
    http://www.openmymind.net/
    http://www.fuelindustries.com/


    "Dabbler" <> wrote in message
    news:...
    >I set some strings and integers in Session but when I get to my redirected
    > page the values are null.
    >
    >
    > I'm running on localhost Windows XP Pro but using remote SQL 2005
    > database.
    > Not doing anything with caching. I am using Master files and sub master
    > files. Also using a bit of Atlas but none of this should be clearing my
    > session variables?
    >
    > <%@ Page Language="C#" MasterPageFile="~/Admin.master"
    > AutoEventWireup="true" CodeFile="VanPoolList.aspx.cs"
    > Inherits="ssl_VanPoolList" %>
    >
    >
    > Any help would be greatly appreciated.
     
    Karl Seguin [MVP], Jul 20, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jonk Eidersteldvr

    Session Variables - Loosing

    Jonk Eidersteldvr, Aug 29, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    542
    Mark MacRae
    Aug 29, 2003
  2. Glen Wilkin via DotNetMonster.com

    Response.Redirect after Response.Flush

    Glen Wilkin via DotNetMonster.com, Apr 15, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    7,083
  3. =?Utf-8?B?QWFyaWM=?=

    Loosing session variables in redirect

    =?Utf-8?B?QWFyaWM=?=, Jul 26, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    676
    =?Utf-8?B?SmFjZWsgU3Rhd2lja2k=?=
    Jul 26, 2005
  4. Replies:
    5
    Views:
    604
    =?ISO-8859-1?Q?G=F6ran_Andersson?=
    Jun 12, 2007
  5. Sal
    Replies:
    1
    Views:
    1,006
Loading...

Share This Page