dcsimg
www.webdeveloper.com
Results 1 to 8 of 8

Thread: Session variables

  1. #1
    Join Date
    Jan 2003
    Location
    PA
    Posts
    1,898

    Session variables

    I have a site that uses a splash page as the main page. From this page, you either type your name, and view the site as a "guest" or you click the login button and use your username/password to login to your designated area of the site. What is happening is that once you login with your username/password, and you get to your designated sites home page, and click on a news item, for example, it takes me back to the login page as if I' am a guest. No matter what I try to do from the home page, it changes my access to guest. Any idea what might cause this? Maybe a database issue?

  2. #2
    Join Date
    Jan 2003
    Location
    Dundee, Scotland
    Posts
    1,367
    hi,
    i take it you are trying to use session variables, can you pleae post the code you have so far so we can have a look at it.

  3. #3
    Join Date
    Jan 2003
    Location
    PA
    Posts
    1,898
    Sure, but which page would you like? The splash page, the login page, the home page??

  4. #4
    Join Date
    Jan 2003
    Location
    PA
    Posts
    1,898
    GHere is the Splash page:
    <%@ Language=JavaScript%>
    <%
    if ("conmanname"=="") dbiMissingParameters("Set Session variable equal to value when page loads","Session","Please enter a variable name")
    Session("conmanname") = "none"
    if ("divname"=="") dbiMissingParameters("Set Session variable equal to value when page loads","Session","Please enter a variable name")
    Session("divname") = "guest"
    if ("accessgroup"=="") dbiMissingParameters("Set Session variable equal to value when page loads","Session","Please enter a variable name")
    Session("accessgroup") = "Guest"
    if ("firstname"=="") dbiMissingParameters("Set Session variable equal to value when page loads","Session","Please enter a variable name")
    Session("firstname") = ""
    if ("languages"=="") dbiMissingParameters("Set Session variable equal to value when page loads","Session","Please enter a variable name")
    Session("languages") = "english"
    %>

    <!--#include file ="javascript/IIS_Gen_3.0_ConnectionPool.js"-->
    <!--#include file ="javascript/IIS_Gen_3.0_Recordset.js"-->
    <!--#include file ="javascript/MkOptnFmRecordset.js"-->
    <!--#include file ="javascript/IIS_ServerHTMLEncode.js"-->

    <%
    /* Connection Pooler */
    var ConnectionCache = new ConnectionCache()
    /* server-side recordset */
    var rsGraphicsToday = new Recordset("rsGraphicsToday", "raportalsqltst", "admin", "", "SELECT * FROM GraphicsTodayQuery", "", true, 2, 3, 3, "");
    rsGraphicsToday.Open();
    rsGraphicsToday.ProcessAction();
    rsGraphicsToday.SetMessages("","");
    /* server-side recordset */
    var rsZ01_ConToday = new Recordset("rsZ01_ConToday", "raportalsqltst", "admin", "", "SELECT * FROM ZoneTodayContentQuery", "ID", true, 2, 3, 3, "");
    rsZ01_ConToday.Open();
    rsZ01_ConToday.ProcessAction();
    rsZ01_ConToday.SetMessages("","");
    /* server-side recordset */
    var rsLessonIcon = new Recordset("rsLessonIcon", "raportalsqltst", "admin", "", "SELECT * FROM LessonTodayIconQuery ", "", true, 2, 3, 3, "");
    rsLessonIcon.Open();
    rsLessonIcon.ProcessAction();
    rsLessonIcon.SetMessages("","");

    %>
    <%
    function TxtDate_Server(html) {
    Response.Write(ReplaceTokensWithTimeDate(html, parseInt("1"), 0))
    }
    %>

    Here is the login page:
    <%@ Language=JavaScript%>
    <%
    if ("languages"=="") dbiMissingParameters("Set Session variable equal to value when page loads","Session","Please enter a variable name")
    Session("languages") = "english"
    if ("divname"=="") dbiMissingParameters("Set Session variable equal to value when page loads","Session","Please enter a variable name")
    Session("divname") = "guest"
    %>

    <!--#include file ="javascript/IIS_Gen_3.0_ConnectionPool.js"-->
    <!--#include file ="javascript/IIS_Gen_3.0_Recordset.js"-->
    <!--#include file ="javascript/MkOptnFmRecordset.js"-->
    <!--#include file ="javascript/IIS_ServerHTMLEncode.js"-->

    <%
    /* Connection Pooler */
    var ConnectionCache = new ConnectionCache()
    /* server-side recordset */
    var rsGraphicsToday = new Recordset("rsGraphicsToday", "raportalsqltst", "admin", "", "SELECT * FROM GraphicsTodayQuery", "", true, 2, 3, 3, "");
    rsGraphicsToday.Open();
    rsGraphicsToday.ProcessAction();
    rsGraphicsToday.SetMessages("","");
    /* server-side recordset */
    var rsLogin = new Recordset("rsLogin", "raportalsqltst", "admin", "", "SELECT * FROM LoginQuery", "", true, 2, 3, 3, "");
    rsLogin.Open();
    rsLogin.ProcessAction();
    rsLogin.SetMessages("","");
    rsLogin_Server();
    /* server-side recordset */
    var rsLessonIcon = new Recordset("rsLessonIcon", "raportalsqltst", "admin", "", "SELECT * FROM LessonTodayIconQuery ", "", true, 2, 3, 3, "");
    rsLessonIcon.Open();
    rsLessonIcon.ProcessAction();
    rsLessonIcon.SetMessages("","");
    /* server-side recordset */
    var rsZ01_ConToday = new Recordset("rsZ01_ConToday", "raportalsqltst", "admin", "", "SELECT * FROM ZoneTodayContentQuery", "ID", true, 2, 3, 3, "");
    rsZ01_ConToday.Open();
    rsZ01_ConToday.ProcessAction();
    rsZ01_ConToday.SetMessages("","");

    %>
    <%
    function rsLogin_Server() {
    if ("LoginName"=="" || "Password"=="") dbiMissingParameters("Verify username from EditLoginName and password from EditPassword","rsLogin")
    if (String(Request("BttnLogin"))!="undefined") {
    var strSuccessPage = URLEscapeSpaces("Administration.asp")
    var strFailPage = URLEscapeSpaces("Blank.asp")
    var strSuperAdmin = URLEscapeSpaces("SuperAdmin.asp")
    var strFilter = "LoginName" + "= '" + String(Request("EditLoginName")) + "' AND " + "Password" + " = '" + String(Request("EditPassword")) + "'";
    var bEmpty = false

    if ("0"=="1" && String(Session("PreviousPage"))!="undefined") {
    strSuccessPage = Session("PreviousPage")
    }

    rsLogin.Filter(strFilter)

    if (rsLogin.IsBOF() && rsLogin.IsEOF()) {
    bEmpty = true
    }

    if ("1"=="1" && bEmpty==false) {
    Session("accessgroup")=String(rsLogin.GetColumnValue("AccessGroup"))
    }

    if ("1"=="1" && bEmpty==false) {
    Session("ConManName")=String(rsLogin.GetColumnValue("ConManName"))
    }

    if ("1"=="1" && bEmpty==false) {
    Session("DivName")=String(rsLogin.GetColumnValue("DivName"))
    }

    if ("1"=="1" && bEmpty==false) {
    Session("FirstName")=String(rsLogin.GetColumnValue("FirstName"))
    }

    if ("1"=="1" && bEmpty==false) {
    Session("LoginID")=String(rsLogin.GetColumnValue("LoginID"))
    }

    if ("0"=="1") {
    if (bEmpty==false) {
    Response.Redirect(strSuccessPage)
    }
    }
    else if ("1"=="1") {
    if (bEmpty==false) {
    //Mary Sammons special Login Page (ID=174)
    if (Session("accessgroup")=="SuperAdmin") {
    Response.Redirect(strSuperAdmin)
    }
    Response.Redirect(strSuccessPage)
    } else {
    Response.Redirect(strFailPage)
    }
    }
    }
    }
    function TxtDate_Server(html) {
    Response.Write(ReplaceTokensWithTimeDate(html, parseInt("1"), 0))
    }
    %>

  5. #5
    Join Date
    Jan 2003
    Location
    Dundee, Scotland
    Posts
    1,367
    hi,
    well not the splash page this will just be a form and text boxes etc. I think the other 2 would be better. The one where the values are written to the session and the one where they are ment to be requested and querried

  6. #6
    Join Date
    Jan 2003
    Location
    PA
    Posts
    1,898
    I posted the splash page and login page above.

    Here is the administation page (this is where login submits to):
    <%@ Language=JavaScript%>
    <%
    if ("Admin"=="" || "accessgroup"=="") dbiMissingParameters("Redirect if user is not in User Groups stored in Session Variable Name","Session")
    var strRequiredGroups = "Admin"
    var strCurrentUser = String(Session("accessgroup"))
    var strPage = String(Request.ServerVariables("PATH_INFO"))
    var strParams = (""!="") ? "?" + URLEscapeSpaces(dbiEvaluateURL("")) : ""
    var strGroupValue = ""
    var strUserValue = ""
    var iLooplength = 0
    var bValid = "false"
    var bSessionExists = true

    if (String(strCurrentUser)=="undefined" || String(strCurrentUser)=="") {
    bSessionExists = false
    }

    if ("1"=="1") {
    Session("PreviousPage") = dbiGetCurrentPage(1,1,1)
    }

    strRequiredGroups = strRequiredGroups.split(/\s*,\s*/)
    strCurrentUser = strCurrentUser.split(/\s*,\s*/)

    while (strRequiredGroups.length>iLooplength && bValid=="false") {
    strGroupValue = strRequiredGroups[iLooplength]
    iLooplength2 = 0

    while (strCurrentUser.length>iLooplength2 && bValid=="false") {
    strUserValue = strCurrentUser[iLooplength2]

    if (String(strUserValue)) {
    if (String(strUserValue)==strGroupValue) {
    bValid = "true"
    }
    }
    iLooplength2++
    }
    iLooplength++
    }

    if (bSessionExists==false) {
    strParams = "?" + URLEscapeSpaces(dbiEvaluateURL("Timeout"))
    }

    if (bValid=="false") {
    Response.Redirect(URLEscapeSpaces("Home.asp") + strParams)
    }
    %>

    <!--#include file ="javascript/IIS_Gen_3.0_ConnectionPool.js"-->
    <!--#include file ="javascript/IIS_Gen_3.0_Recordset.js"-->
    <!--#include file ="javascript/MkOptnFmRecordset.js"-->
    <!--#include file ="javascript/IIS_ServerHTMLEncode.js"-->

    <%
    /* Connection Pooler */
    var ConnectionCache = new ConnectionCache()
    /* server-side recordset */
    var rsGraphicsToday = new Recordset("rsGraphicsToday", "raportalsqltst", "admin", "", "SELECT * FROM GraphicsTodayQuery", "", true, 2, 3, 3, "");
    rsGraphicsToday.Open();
    rsGraphicsToday.ProcessAction();
    rsGraphicsToday.SetMessages("","");
    /* server-side recordset */
    var rsNavigationMng = new Recordset("rsNavigationMng", "raportalsqltst", "admin", "", "SELECT Navigation.PageName, Navigation.RootPath FROM Navigation WHERE Navigation.Access = 'Admin' OR Navigation.Access = 'Manager' ORDER BY sequence", "", true, 2, 3, 3, "");
    rsNavigationMng.Open();
    rsNavigationMng.ProcessAction();
    rsNavigationMng.SetMessages("","");
    /* server-side recordset */
    var rsNavigation = new Recordset("rsNavigation", "raportalsqltst", "admin", "", "SELECT Navigation.Languages, Navigation.PageName, Navigation.RootPath FROM Navigation WHERE Navigation.Access = 'Guest' ORDER BY sequence", "", true, 2, 3, 3, "");
    rsNavigation.Open();
    rsNavigation.ProcessAction();
    rsNavigation.SetMessages("","");
    rsNavigation_Server();

    %>
    <%
    function rsNavigation_Server() {
    if (String(Session("languages")) != "undefined")
    {
    var serverVar = Session("languages")
    rsNavigation.Filter("Languages" + " = '" + serverVar + "'")
    }
    }
    function TxtDate_Server(html) {
    Response.Write(ReplaceTokensWithTimeDate(html, parseInt("1"), 0))
    }
    function Text1_Server(html) {
    var Ival = String(Session("firstname"));
    if (Ival != "undefined")
    {
    html = subAwithBinC("[firstname]",Ival,html);
    }
    else
    {
    html = subAwithBinC("[firstname]","",html);
    }
    Response.Write(html);
    }
    function Text5_Server(html) {
    var Ival = String(Session("firstname"));
    if (Ival != "undefined")
    {
    html = subAwithBinC("[firstname]",Ival,html);
    }
    else
    {
    html = subAwithBinC("[firstname]","",html);
    }
    Response.Write(html);
    }
    %>

  7. #7
    Join Date
    Jan 2003
    Location
    PA
    Posts
    1,898
    Here is the home page:
    <%@ Language=JavaScript%>
    <%
    if ("pagename"=="") dbiMissingParameters("Set Session variable equal to value when page loads","Session","Please enter a variable name")
    Session("pagename") = "home"
    if (Request.Querystring("accesstest") == "SuperAdmin") {
    if (Request.Querystring("divtest")) {
    Session("divname") = Request.Querystring("divtest").Item;
    }
    if (Request.Querystring("accesstest")) {
    Session("accessgroup") = Request.Querystring("accesstest").Item;
    }
    if (Request.Querystring("conmantest")) {
    Session("conmanname") = Request.Querystring("conmantest").Item;
    }
    } else {
    }
    Response.Write(Session("divname"))
    AccessGroup = (Session("accessgroup"))
    Response.Write (AccessGroup)
    Response.Write(Session("conmanname"))
    %>

    <!--#include file ="javascript/IIS_Gen_3.0_ConnectionPool.js"-->
    <!--#include file ="javascript/IIS_Gen_3.0_Recordset.js"-->
    <!--#include file ="javascript/MkOptnFmRecordset.js"-->
    <!--#include file ="javascript/IIS_ServerHTMLEncode.js"-->
    <%
    var NewsTable_Action;
    var EventsTable_Action;

    %>
    <%
    /* Connection Pooler */
    var ConnectionCache = new ConnectionCache()
    /* server-side recordset */
    var rsNavigation = new Recordset("rsNavigation", "raportalsqltst", "admin", "", "SELECT Navigation.Languages, Navigation.PageName, Navigation.RootPath FROM Navigation WHERE Navigation.Access = 'Guest' OR Navigation.Access = 'Manager' ORDER BY sequence", "", true, 2, 3, 3, "");
    rsNavigation.Open();
    rsNavigation.ProcessAction();
    rsNavigation.SetMessages("","");
    rsNavigation_Server();
    /* server-side recordset */
    var rsGraphicsToday = new Recordset("rsGraphicsToday", "raportalsqltst", "admin", "", "SELECT * FROM GraphicsTodayQuery", "", true, 2, 3, 3, "");
    rsGraphicsToday.Open();
    rsGraphicsToday.ProcessAction();
    rsGraphicsToday.SetMessages("","");
    /* server-side recordset */
    var rsZ00_ConMan = new Recordset("rsZ00_ConMan", "raportalsqltst", "admin", "", "SELECT * FROM ContentManagerZones WHERE Zones='@zones'", "", true, 2, 3, 3, "", "@zones", "00");
    rsZ00_ConMan_BeforeOpen();
    rsZ00_ConMan.Open();
    rsZ00_ConMan.ProcessAction();
    rsZ00_ConMan.SetMessages("","");
    rsZ00_ConMan_Server();
    /* server-side recordset */
    var rsZ01_ConMan = new Recordset("rsZ01_ConMan", "raportalsqltst", "admin", "", "SELECT * FROM ContentManagerZones WHERE Zones='@zones'", "", true, 2, 3, 3, "", "@zones", "01");
    rsZ01_ConMan_BeforeOpen();
    rsZ01_ConMan.Open();
    rsZ01_ConMan.ProcessAction();
    rsZ01_ConMan.SetMessages("","");
    rsZ01_ConMan_Server();
    /* server-side recordset */
    var rsZ01_ConToday = new Recordset("rsZ01_ConToday", "raportalsqltst", "admin", "", "SELECT * FROM ZoneTodayContentQuery", "ID", true, 2, 3, 3, "");
    rsZ01_ConToday.Open();
    rsZ01_ConToday.ProcessAction();
    rsZ01_ConToday.SetMessages("","");
    rsZ01_ConToday_Server();
    /* server-side recordset */
    var rsResourceList4 = new Recordset("rsResourceList4", "raportalsqltst", "admin", "", "SELECT * FROM ResourceLists WHERE Languages='@languages' AND DivName='@divname' AND ListID=4 ORDER BY Sequence", "", true, 2, 3, 3, "", "@divname", "guest", "@languages", "english");
    rsResourceList4_BeforeOpen();
    rsResourceList4.Open();
    rsResourceList4.ProcessAction();
    rsResourceList4.SetMessages("","");
    rsResourceList4_Server();
    /* server-side recordset */
    var rsResourceList3 = new Recordset("rsResourceList3", "raportalsqltst", "admin", "", "SELECT * FROM ResourceLists WHERE Languages='@languages' AND DivName='@divname' AND ListID=3 ORDER BY Sequence", "", true, 2, 3, 3, "", "@divname", "guest", "@languages", "english");
    rsResourceList3_BeforeOpen();
    rsResourceList3.Open();
    rsResourceList3.ProcessAction();
    rsResourceList3.SetMessages("","");
    rsResourceList3_Server();
    /* server-side recordset */
    var rsResourceList2 = new Recordset("rsResourceList2", "raportalsqltst", "admin", "", "SELECT * FROM ResourceLists WHERE Languages='@languages' AND DivName='@divname' AND ListID=2 ORDER BY Sequence", "", true, 2, 3, 3, "", "@divname", "guest", "@languages", "english");
    rsResourceList2_BeforeOpen();
    rsResourceList2.Open();
    rsResourceList2.ProcessAction();
    rsResourceList2.SetMessages("","");
    rsResourceList2_Server();
    /* server-side recordset */
    var rsResourceList1 = new Recordset("rsResourceList1", "raportalsqltst", "admin", "", "SELECT * FROM ResourceLists WHERE Languages='@languages' AND DivName='@divname' AND ListID=1 ORDER BY Sequence", "", true, 2, 3, 3, "", "@divname", "guest", "@languages", "english");
    rsResourceList1_BeforeOpen();
    rsResourceList1.Open();
    rsResourceList1.ProcessAction();
    rsResourceList1.SetMessages("","");
    rsResourceList1_Server();
    /* server-side recordset */
    var rsZ03_ConMan = new Recordset("rsZ03_ConMan", "raportalsqltst", "admin", "", "SELECT * FROM ContentManagerZones WHERE Zones='@zones'", "", true, 2, 3, 3, "", "@zones", "03");
    rsZ03_ConMan_BeforeOpen();
    rsZ03_ConMan.Open();
    rsZ03_ConMan.ProcessAction();
    rsZ03_ConMan.SetMessages("","");
    rsZ03_ConMan_Server();
    /* server-side recordset */
    var rsZ03_ConSub = new Recordset("rsZ03_ConSub", "raportalsqltst", "admin", "", "SELECT * FROM Zone03PageSubContent WHERE Zone03PageSubContent.DivName='@divname' AND Zone03PageSubContent.Languages='@languages' ORDER BY Sequence ", "ID", true, 2, 3, 3, "", "@divname", "guest", "@languages", "english");
    rsZ03_ConSub_BeforeOpen();
    rsZ03_ConSub.Open();
    rsZ03_ConSub.ProcessAction();
    rsZ03_ConSub.SetMessages("","");
    rsZ03_ConSub_Server();
    /* server-side recordset */
    var rsZ04_ConSub = new Recordset("rsZ04_ConSub", "raportalsqltst", "admin", "", "SELECT * FROM Zone04PageSubContent WHERE Zone04PageSubContent.DivName='@divname' AND Zone04PageSubContent.Languages='@languages' ORDER BY Sequence ", "ID", true, 2, 3, 3, "", "@divname", "guest", "@languages", "english");
    rsZ04_ConSub_BeforeOpen();
    rsZ04_ConSub.Open();
    rsZ04_ConSub.ProcessAction();
    rsZ04_ConSub.SetMessages("","");
    rsZ04_ConSub_Server();
    /* server-side recordset */
    var rsZ04_ConMan = new Recordset("rsZ04_ConMan", "raportalsqltst", "admin", "", "SELECT * FROM ContentManagerZones WHERE Zones='@zones'", "", true, 2, 3, 3, "", "@zones", "04");
    rsZ04_ConMan_BeforeOpen();
    rsZ04_ConMan.Open();
    rsZ04_ConMan.ProcessAction();
    rsZ04_ConMan.SetMessages("","");
    rsZ04_ConMan_Server();
    /* server-side recordset */
    var rsSearch = new Recordset("rsSearch", "raportalsqltst", "admin", "", "SELECT * FROM SearchQuery WHERE DivName='@divname' AND Languages='@languages'", "ID", true, 2, 3, 3, "", "@languages", "espanol", "@divname", "guest");
    rsSearch_BeforeOpen();
    rsSearch.Open();
    rsSearch.ProcessAction();
    rsSearch.SetMessages("","");
    rsSearch_Server();
    /* server-side recordset */
    var rsFeatured = new Recordset("rsFeatured", "raportalsqltst", "admin", "", "SELECT * FROM FeatureQuery", "LoginID", true, 2, 3, 3, "");
    rsFeatured_BeforeOpen();
    rsFeatured.Open();
    rsFeatured.ProcessAction();
    rsFeatured.SetMessages("","");
    /* server-side recordset */
    var rsHeadings = new Recordset("rsHeadings", "raportalsqltst", "admin", "", "SELECT * FROM Headings WHERE Languages='@languages'", "", true, 2, 3, 3, "", "@languages", "english");
    rsHeadings_BeforeOpen();
    rsHeadings.Open();
    rsHeadings.ProcessAction();
    rsHeadings.SetMessages("","");
    rsHeadings_Server();
    /* server-side recordset */
    var rsLessonIcon = new Recordset("rsLessonIcon", "raportalsqltst", "admin", "", "SELECT * FROM LessonTodayIconQuery ", "", true, 2, 3, 3, "");
    rsLessonIcon.Open();
    rsLessonIcon.ProcessAction();
    rsLessonIcon.SetMessages("","");

    %>
    <%
    function rsNavigation_Server() {
    if (String(Session("languages")) != "undefined")
    {
    var serverVar = Session("languages")
    rsNavigation.Filter("Languages" + " = '" + serverVar + "'")
    }
    }
    function rsZ00_ConMan_Server() {
    if (String(Session("ConManName")) != "undefined")
    {
    var serverVar = Session("ConManName")
    rsZ00_ConMan.Filter("ContentManager" + " = '" + serverVar + "'")
    }
    }
    function rsZ00_ConMan_BeforeOpen() {
    var ParamValue = String(Request("HiddenZ00"));
    var EnclosingToken = "None"

    if (EnclosingToken =="None")
    EnclosingToken = ""


    if ((ParamValue != "") && (ParamValue != "undefined"))
    {
    ParamValue = SQLEscapeQuotes(ParamValue)
    ParamValue = EnclosingToken + ParamValue + EnclosingToken;
    rsZ00_ConMan.SetParameter("@zone", ParamValue);
    }
    }
    function rsZ01_ConMan_Server() {
    if (String(Session("ConManName")) != "undefined")
    {
    var serverVar = Session("ConManName")
    rsZ01_ConMan.Filter("ContentManager" + " = '" + serverVar + "'")
    }
    }
    function rsZ01_ConMan_BeforeOpen() {
    var ParamValue = String(Request("HiddenZ01"));
    var EnclosingToken = "None"

    if (EnclosingToken =="None")
    EnclosingToken = ""


    if ((ParamValue != "") && (ParamValue != "undefined"))
    {
    ParamValue = SQLEscapeQuotes(ParamValue)
    ParamValue = EnclosingToken + ParamValue + EnclosingToken;
    rsZ01_ConMan.SetParameter("@zone", ParamValue);
    }
    }
    function rsZ01_ConToday_Server() {
    if (String(Session("languages")) != "undefined")
    {
    var serverVar = Session("languages")
    rsZ01_ConToday.Filter("Languages" + " = '" + serverVar + "'")
    }
    }
    function rsResourceList4_Server() {
    rsResourceList4.RS.Requery()
    rsResourceList4.RS.Requery()
    }
    function rsResourceList4_BeforeOpen() {
    var ParamValue = String(Session("languages"))
    var EnclosingToken = "None"
    if (EnclosingToken == "None")
    {
    EnclosingToken = ""
    }

    if ((ParamValue != "") && (ParamValue != "undefined"))
    {
    ParamValue = EnclosingToken + ParamValue + EnclosingToken
    rsResourceList4.SetParameter("@languages",ParamValue)
    }
    var ParamValue = String(Session("divname"))
    var EnclosingToken = "None"
    if (EnclosingToken == "None")
    {
    EnclosingToken = ""
    }


    This is not all of the code, it's too long for here.

  8. #8
    Join Date
    Jan 2003
    Location
    Dundee, Scotland
    Posts
    1,367
    hi,
    ok first i have never used Javascript to write ASP pages i normally use VBScript. I would try strip down your code until you have the bare minimum of code running and then just start testing the session variables one by one. Assign a value to one session variable then on the other page request it and response.write it out to screen. If you're assigned value is there then move on to test them all. If it is not there then make sure IIS is configured to allow sessions.
    If your still having problems start with 2 new pages and just play about with assigning and retrieving session variables.
    It sounds like either the value is not being assigned correctly or its not being requested correctly or IIS is not configured correctly. Hope this helps just repost in needing further help.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles