Please Help Session variables disappear

Hi. I am having issues with the developer's version of CF MX
7. I recently set up the developer's version on a test server, and
moved over code from a properly working site using MX 6. I have an
application.cfm file set will the correct <cfapplication> tag
attributes, and the session management is set in the CF admin. When
working on MX 6 the session variables I set were working. Now using
MX 7 none of my sessions are holding. When I first login the
sessions exist, if I click any other page, the variables disappear.
Again, this does not happen on MX 6.
Please help!
Thanks,
jlg

Double-check your sessiontimemout
Try setting up a simple test application using something
similar to the example at
http://livedocs.adobe.com/coldfusion/7/htmldocs/00000217.htm

Similar Messages

  • PLEASE HELP SESSION VARIABLES

    I have created a master details pages, containing  information/details of various people i.e firstname,secondname, registration no, marks, grade, then I have created a login page that after login it direct the users to that master details page with information, what  I want is, when a user  log in(he/she will be directed to master details page), let the master details page display his/her information only,without showing other person information,.PLEASE ASSIST ANYONE THANK YOU

    To add to bregent, these could help:
    http://forums.adobe.com/thread/417437
    http://cookbooks.adobe.com/post_Display_user_s_name_and_other_details_after_login-16672.ht ml

  • URGENT PLEASE HELP-Session State Provider for 8i.

    We are looking for a SESSION STATE PROVIDER for .NET 2.0 for Oracle 8i. Please help to find a solution. The current installation on the Oracle website does not work for 8i.
    Thanks a BILLION in advance.

    You'll need to install the ODP 11 beta...

  • Use of session variables disappeared

    Hi - I have a really old CF site that has worked perfectly all these years.
    Sometime over the past 7 days, my all of my session variables have ceased to work.
    These session variables appear on the pages where I set them up, but the minute I transfer to a new page, they are completely gone. They do not appear in the debug information at all.
    I think that there has been some change in CF Server 8, but my system administrator says that he did not change any settings. (If he had, what would it be? I don't have admin access.)
    Like I said, they worked perfectly until very recently and luckily, I don't use a load of them.
    If push comes to shove, I can use cookies, but I really don't want to sit through an evening of debugging.
    What do you think went wrong?
    Help!

    Well - thank U. My system admin said he did not touch a thing, and furthermore, my test works well for him.
    Here is my test:
    http://www.littleviews.com/test/test_1.cfm
    Page 2 should fail, or at least it does for me (I live on the East Coast in Weehawken), but it does not to him (the Milwaukee/Waukesha area in Wisconsin)
    Karen

  • Please Help: Session context sharing between wars in same app

    I'm using iplanet iAS6.0 SP1.
    I have to share a session among 6 wars inside my application.
    I have tested individual wars and they work fine. Now during integration
    i find that session is not being shared.
    in my application descriptor i have included all the wars and I have
    used the same context-root name for all war entries.
    On of the wars is a login.war and it sets some user previlages info into
    session which has to be shared among all wars.
    I'm not able to get it working.
    My settings in each war for session info go like this,
    <session-info>
    <impl>distributed</impl>
    <dsync-type>dsync-distributed</dsync-type>
    <timeout-type>last-access</timeout-type>
    <secure>false</secure>
    <domain></domain>
    <path></path>
    <scope></scope>
    </session-info>
    I'm stuck here. Documentation says on making session distributed and
    setting dsync-type to distributed should work.
    What else should be done in SP1.
    Is it a must to move to SP2 to solve this. And even in SP2 is it
    straight forward?
    Please help
    my application.xml looks like this............
    <application>
    <display-name>myapp</display-name>
    <module>
    <web>
    <web-uri>mywar1.war</web-uri>
    <context-root>app</context-root>
    </web>
    </module>
    <module>
    <web>
    <web-uri>mywarN.war</web-uri>
    <context-root>app</context-root>
    </web>
    </module>
    <module>
    <web>
    <web-uri>login.war</web-uri>
    <context-root>app</context-root>
    </web>
    </module>
    <module>
    <ejb>myjar1.jar</ejb>
    </module>
    </application>

    Thanks-- that wasn't exactly the solution, since the dates and times are correct and IP addresses on both machinges should have been handled by DHCP, but you solved my problem by reminding me that there is a TCP/IP extension, which I looked at and saw that TCP/IP was turned off. I turned it on, and now everything is as it was an hour ago. So thank you!

  • Session Variables Disappearing

    This issue of disappearing session variables keeps coming up
    again and again. I am reading about session variables work from
    Adobe site and it say this
    Click
    Here
    Session variables have the following
    traits:
    In order for session variables to
    work, the visitor's browser must be set to accept cookies.
    The pages for
    the site all must be located within a single directory on the web
    server.
    Information stored in session
    variables is site visitor specific. Different site visitors cannot
    access each other's session variable information.
    My question is this (about the highlighted). since my
    application.cfm is located in the root directory and the session
    variables are set from different directories under the root, will
    this be the problem? Users login into the site from the members
    directory and the sessions for that user are set after successful
    login. when the user tries any other link from a different
    directory the session disappears. Is this a recurring problem with
    CFMX (6.1)or am I the only one experiencing this. I wish someone
    from ADOBE should also respond to this.

    The session variables are good for the entire application.
    And the application is defined as any file at the same level or
    beneath the application.cfm. If you are trying to access files that
    do not fall under or at the same level as application.cfm then your
    session variables would be invalid.

  • Please Help! Files disappeared while copying!

    Hi all. Ok, I'm not an idiot, but I seem to have done something stupid and I'm hoping there's a fix. I'll try to keep this brief.
    My main user on my G5 kept having weird preferences problems. I decided I would create a new admin user and transfer all of my essential data (pictures for iPhoto and music for iTunes) to the shared folder and then to the new user. The plan was to then delete the old user and have only my brand new one. Here's what happened:
    I dragged the folder containing all 4,700 of my photos to the shared folder (I held down the command key to move the folder instead of copying it). A dialogue box popped up showing the move in process and also giving me a cancel button. After about 2 seconds it occurred to me that I probably should have 'copied' the folder instead of 'moving' it just in case. So I hit cancel. The problem is that the folder had already disappeared from the original location, and only 200 of my pictures had been transferred to the new location! SO THE OTHER 4,500 photos are GONE!! Where did they go!?
    Please help! I really hope I didn't just lose ALL those irreplaceable pics.
    One other thing: I kept a close eye on my activity monitor, watching the space used on my hard drive. It hasn't changed. I would think that if the files were gone completely the disk space used would have gone down by 4GB. Any ideas? PLEASE!?
    Thanks.

    You didn't lose them, but the Finder did. Do you have a copy of DiskWarrior? That will find them and put any 'lost' files into a 'lost & found' folder for you.
    If not, there's a longer way - manually. Here's how. I have the same problem with the images disappearing inside my pictures folders, so I do a search with the Find tool, and use the names of the pictures - I take it with that many photos, they are taken with a digital camera?
    Do a search with the IMG000.jpg or DSC0001.jpg - basically whatever the common name that your camera titles the pictures with. Don't bother with using the numbers. What will happen is that the pictures will come up in the search window and what I do is then I have a new folder waiting on the desktop and I drag and drop the pictures, 20 or 30 at a time out of the Finder window right into the new folder. That usually nails it, unless something has really gone flooey and I just use the DW.
    Deb.

  • PLEASE HELP! Contacts disappeared and downgrade IOS

    Hi everyone,
    My lil did an update to IOS 7 for his iphone 4s and my dads iphone 4. Apparently, He was using his ID for both phones as my dad doesn't have one and also icloud was on on both phones and the result is his phone also has my dads contacts and vice versa. After realising my dad could receive his texts, he unticked his number on dads imessage. Things done. But my dad then asked my brother to to get rid off his friends contacts on dads. He accidentally deleted his friends contacts on dads phone without turn off icloud so all his friends number on his phone also disappeared and then he did another silly thing was turn off icloud on dads phone after that and yeah dads contacts also disappeared. Please let me know if he can do anything to recover both phones' contacts?
    And also dad thinks IOS7 is too fancy and run a bit slow on his phone. Is there any how we can downgrade it back to IOS6?
    Very appreciate :) 

    Are you using MobileMe? If so, is the data still available on me.com online?

  • Please help, Macbook HD disappeared suddenly =(

    Has anyone ever heard of this happening?
    My macbook suddenly froze, I could not get it to force quit anything, so I shut it down... and it wouldnt start. The folder with the question mark kept blinking so I tried to start it up holding option and nothing happened... then I tried starting it up with the disk installer 1 and it does not show my HD to repair or do anything with it... I tried to go on startup disk and it only shows the cd and network start up... So I thought I'd try to reinstall it and... there is no HD to pick from to install it on. I was wondering if anyone has had this happen to them and what could be the cause of it? Its a macbook 2.0 with 2G of ram, its barely a year old. When I start it I can hear some ticking noises then it stops....
    Someone help me out please. Any help will be much appreciated, Thank you..
    MacBook Mac OS X (10.4.9)

    Sorry!
    Same thing happened to me just today and after calling Apple and working through their suggestions for resolution, they told me to take my MB to the nearest Apple Store or Service Center for replacement.
    Thankfully I extended my initial warranty but I'm ashamed to say I haven't backed up in a few months and therefore alot of data and some irreplaceable photos are lost.
    I made an appt at the Genius Bar for Monday but I'm going to see what can be done before then.
    This is the third major problem my MB has gone in for and today I was told that one more problem and they will just give me a new MB (they really should do that now since they've replaced my battery twice, my logic board, my heatsink, the discoloration twice) - this is a lemon.
    I'm very disappointed but this time I'll make sure to back up daily. Live and Learn.

  • Please help! Stickies disappeared

    Hello, I put my macbook to sleep and when I opened it again, stickies (the app, not the dashboard stickies) were open with only one blank sticky! I had a bunch and now they're all gone. I went to find the stickiesdatabase but it's only 4kb and says it was created this morning. There's nothing in the trash. I don't have time machine set up or a back up (I know this was stupid) so how can I recover my stickies?

    You didn't lose them, but the Finder did. Do you have a copy of DiskWarrior? That will find them and put any 'lost' files into a 'lost & found' folder for you.
    If not, there's a longer way - manually. Here's how. I have the same problem with the images disappearing inside my pictures folders, so I do a search with the Find tool, and use the names of the pictures - I take it with that many photos, they are taken with a digital camera?
    Do a search with the IMG000.jpg or DSC0001.jpg - basically whatever the common name that your camera titles the pictures with. Don't bother with using the numbers. What will happen is that the pictures will come up in the search window and what I do is then I have a new folder waiting on the desktop and I drag and drop the pictures, 20 or 30 at a time out of the Finder window right into the new folder. That usually nails it, unless something has really gone flooey and I just use the DW.
    Deb.

  • Please Help | Dyanamic variable based on another field

    In the query below, I'm attempting to replace task codes with task descriptions by left joining to a multi-purpose control table.
    In our corp, the description for the task code varies based on the value of change_program in each record, so rather than referencing the value of code_index.tabl statically as I do in the query below (201), I need a dyanamic variable to be defined for each record based on the value of work.change_program, which would represent the value for code_index.tabl.
         For each record
              if change_program =1 then v_tabl = 201
              elseif change_program =2 then v_tabl = 202
              elseif change_program =3 then v_tabl = 203
              else v_tabl = 201
    BTW, I'm really a noob, so I have no idea how to declare and use variables, but I'm sure it must be possible. Any assistance with the syntax would be GREATLY appreciated.
    SELECT account,
    change_program,
    task_code_01,
    task_code_02,
    task1.longdesc,
    task2.longdesc
    FROM work
    left join (SELECT id,
    longdesc
    FROM code_index
    WHERE corp = mem
    AND tabl = 201) task1
    ON task1.id = work.task_code_01
    left join (SELECT id,
    longdesc
    FROM code_index
    WHERE corp = mem
    AND tabl = 201) task2
    ON task2.id = work.task_code_02
    WHERE work.corp = mem

    Welcome to the forum,
    CASE WHEN change_program =1 THEN  201
       WHEN change_program =2 THEN   202
       WHEN change_program =3 THEN   203
       ELSE  201
    ENDis a valid construct in SELECT statement.
    Check SELECT syntax in ORacle documentation.
    vr
    Sudhakar B.

  • Disappearing session variables

    Using xppro & cf9--I have session variables that I created on page A, but when I move to page B the session variables disappear.  I can't figure out what I'm doing wrong....can't even firgure out where to look, although I've gone through page B to see where I might accidentally invalidate the session variables.  The CFID is the same for both pages.  Any thoughts?

    Seeing the code would help.
    Here are some things to check.
    1. What session related settings are setup in the CF adminstrator?
    http://help.adobe.com/en_US/ColdFusion/9.0/Admin/WSc3ff6d0ea77859461172e0811cbf3638e6-7ffc .html 
    2. Are cookies enabled on the client web browser or are you using cookie-less sessions? 
    http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec0c35c -7fef.html#WSc3ff6d0ea77859461172e0811cbec22c24-7cbf 
    3. Are sessions enabled in your Application.cfc?
    http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec22c24 -7c48.html#WS7BC953A6-8CA7-4759-BDDF-15000CBCC0CD 
    Message was edited by: JR "Bob" Dobbs: Edit hyperlink

  • Javax.servlet.* Not Found Error - Please help

    I am having a great deal deal of trouble trying to compile a program using javax.servlet and javax.servlet.hhtp.*. I have setup the JAVA_HOME and the CLASSPATH variables as per the Installation instructions. I appear to have hit a brick wall and I am absolutely desperate to get this working. I have installed the J2EE SDK as well as the Servletapi2.1. Please Help.
    Variables:
    CLASSPATH=c:\jdk1.3\lib\tools.jar;c:\j2sdkee1.3.1\lib\j2ee.jar;c:\jdk1.3\jre\bin;c:\jdk1.3\jre\lib;c:\mm.mysql-2.0.14\org;c:\jdk1.3\lib\servlet.jar;
    JAVA_HOME=c:\jdk1.3;
    J2EE_HOME=c:\j2sdkee1.3.1;
    PATH=%PATH%;c:\jdk1.3\bin;c:\j2sdkee1.3.1\bin;
    Error message from compiler:
    L:\PROGRA~1\allaire\jrun\servers\default\loanstest\web-inf\classes\PasswordServlet.java:27: package javax.servlet does not exist
    import javax.servlet.*;
    ^
    L:\PROGRA~1\allaire\jrun\servers\default\loanstest\web-inf\classes\PasswordServlet.java:30: package javax.servlet.http does not exist
    import javax.servlet.http.*;
    ^
    L:\PROGRA~1\allaire\jrun\servers\default\loanstest\web-inf\classes\PasswordServlet.java:39: cannot resolve symbol
    symbol : class HttpServlet
    location: class PasswordServlet
    public class PasswordServlet extends HttpServlet

    I can only think of three suggestions.
    One, use your mouse to "cut-n-paste" the value of CLASSPATH and verify that those files are exactly where you think they are, and are spelled right.
    E.g.
    CD C:\JDK1.3\LIB
    DIR SERVLET.JAR
    Two, if they're spelled right, run "jar tvf" on the files to make sure they aren't corrupted or something.
    E.g.:
    JAR TVF SERVLET.JAR
    Three, since you're working in Windoze, try putting the value inside double quotes. E.g.:
    SET CLASSPATH="c:\jdk1.3\lib\tools.jar;c:\j2sdkee1 ... etc ... "
    If you haven't tried the above, give it a go, see what happens.

  • How do i filter recordsets using session variable???  Please help this is driving me mad...!!

    I am having the same problem as user "Gabe the animator" in a post sent in 2007.
    "my recordset that drives a dynamic table won't filter results based on a session variable. I know session variables are working because I have the session variable echo on the page (dragged-n-dropped my session variable from the Bindings panel to my page), and that works fine. So why can't I filter my recordset with the same session variable???"
    here is the code:
    <?php require_once('Connections/mockconn.php'); ?>
    <?php
    session_start();
    ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    if(!session_id()){
    session_start();
    $colname_info = "-1";
    if (isset($_SESSION['email'])) {
      $colname_info = $_SESSION['email'];
    mysql_select_db($database_mockconn, $mockconn);
    $query_info = sprintf("SELECT name, last_name, email, password FROM registration WHERE email = %s", GetSQLValueString($colname_info, "text"));
    $info = mysql_query($query_info, $mockconn) or die(mysql_error());
    $row_info = mysql_fetch_assoc($info);
    $totalRows_info = mysql_num_rows($info);
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>home</title>
    </head>
    <body>
    <div id="info">hello <?php echo $row_info['']; ?></div>
    <?php
    if (isset($_SESSION['email'])) {
              echo 'your email: '.' '. $_SESSION['email'] .' '.'good job';}
                        ?>
    </body>
    </html>
    PLEASE PLEASE HELP.... I have been at this for day's...
    how do I get the record set to filter based on the value of the session variable

    Sorry I forgot to mension the error I am getting?
    ( ! ) Notice: Undefined index: in C:\wamp\www\mock\home.php on line 59
    Call Stack
    Time
    Memory
    Function
    Location
    1
    0.0093
    389024
    {main}( )
    ..\home.php:0
    Why is this error coming up?

  • Help with session variable please - CS5.5 PHP

    Hi all,
    I am needing a little assistance with using a session variable and hope that someone may point me in the right direction.
    I have created a PHP page that uses the Dreamweaver 'User Authentication' feature, and the basics of this works fine, directing a user to the correct pages depending on whether they are or are not a valid user. I would like however to personalise the 'valid user' page with the persons Username as entered in the User Authentication table....a seemingly simple task using a session variable, but one that I just don't seem to be able to get working!
    The code generated for the UA on page 1 is as follows:
    <?php
    // *** Validate request to login to this site.
    if (!isset($_SESSION)) {
      session_start();
    $loginFormAction = $_SERVER['PHP_SELF'];
    if (isset($_GET['accesscheck'])) {
      $_SESSION['PrevUrl'] = $_GET['accesscheck'];
    if (isset($_POST['txtfirst_name'])) {
      $loginUsername=$_POST['txtfirst_name'];
      $password=$_POST['txtsurname'];
      $MM_fldUserAuthorization = "";
      $MM_redirectLoginSuccess = "member_update.php";
      $MM_redirectLoginFailed = "login.php";
      $MM_redirecttoReferrer = false;
      mysql_select_db($database_panto, $panto);
      $LoginRS__query=sprintf("SELECT firstname, surname FROM web_access WHERE firstname=%s AND surname=%s",
        GetSQLValueString($loginUsername, "text"), GetSQLValueString($password, "text"));
      $LoginRS = mysql_query($LoginRS__query, $panto) or die(mysql_error());
      $loginFoundUser = mysql_num_rows($LoginRS);
      if ($loginFoundUser) {
         $loginStrGroup = "";
        if (PHP_VERSION >= 5.1) {session_regenerate_id(true);} else {session_regenerate_id();}
        //declare two session variables and assign them
       $_SESSION['MM_Username'] = $loginUsername;
        $_SESSION['MM_UserGroup'] = $loginStrGroup;         
        if (isset($_SESSION['PrevUrl']) && false) {
          $MM_redirectLoginSuccess = $_SESSION['PrevUrl'];   
        header("Location: " . $MM_redirectLoginSuccess );
      else {
        header("Location: ". $MM_redirectLoginFailed );
    ?>
    Firstly, the text highlighted in red above appears to be setting the session variable that I require. Is This correct?
    If so, what is the code that I need to place in page 2 to use that session variable? or
    Do I need to do something else on page 1 to properly assign the session variable?
    Would really appreciate your expertise
    Mark

    It looks as though you've set the columns incorrectly in the User Authentication server behavior. This is the SQL query that checks the user's credentials:
      $LoginRS__query=sprintf("SELECT firstname, surname FROM web_access WHERE firstname=%s AND surname=%s",
        GetSQLValueString($loginUsername, "text"), GetSQLValueString($password, "text"));
    You're looking for firstname and surname, whereas you should be looking for the user's login name and password.
    $_SESSION['MM_Username'] is a session variable that stores the user's login name. To use it in a subsequent page, all that's needed is for the page to begin with session_start(). You can then echo the value to display it.
    If you want to display the person's real name, you need to create a recordset in the second page using $_SESSION['MM_Username'] to find the firstname and surname. Alternatively, you can edit the existing code like this (I've copied only part of it):
      $LoginRS__query=sprintf("SELECT firstname, surname FROM web_access WHERE firstname=%s AND password=%s",
        GetSQLValueString($loginUsername, "text"), GetSQLValueString($password, "text"));
      $LoginRS = mysql_query($LoginRS__query, $panto) or die(mysql_error());
      $loginFoundUser = mysql_num_rows($LoginRS);
      if ($loginFoundUser) {
         $loginStrGroup = "";
        $row = mysql_fetch_assoc($LoginRS);
         $_SESSION['full_name'] = $row['firstname'] . ' ' . $row['surname'];
        if (PHP_VERSION >= 5.1) {session_regenerate_id(true);} else {session_regenerate_id();}
        //declare two session variables and assign them
       $_SESSION['MM_Username'] = $loginUsername;
        $_SESSION['MM_UserGroup'] = $loginStrGroup;
    You can then use $_SESSION['full_name'] in a subsequent page that begins with session_start().

Maybe you are looking for