Professional Web Applications Themes

[PHP] Session Problems with 4.3.2 - PHP Development

No, basically I'm just trying to make sure sessions are working properly. I'm just setting a session variable (which works fine) and trying to retrieve it within another script which doesn't work. No value is printed out. thanks >From: Evan Nemerson <evancoeus-group.com> >To: "Joe Sheehan" <triswimjoehotmail.com> >CC: [email]php-generallists.php.net[/email] >Subject: Re: [PHP] Session Problems with 4.3.2 >Date: Tue, 22 Jul 2003 10:01:03 -0700 > >Were you planning on incrementing $_SESSION['count'] anywhere? If not, try > ><?php isset($_SESSION['count']) ? echo "Yes.\n" : echo "No.\n"; ?> > > > > > >On Tuesday 22 July 2003 09:55 am, Joe Sheehan wrote: > > ...

  1. #1

    Default Re: [PHP] Session Problems with 4.3.2

    No, basically I'm just trying to make sure sessions are working properly.
    I'm just setting a session variable (which works fine)
    and trying to retrieve it within another script which doesn't work.
    No value is printed out.

    thanks
    >From: Evan Nemerson <evancoeus-group.com>
    >To: "Joe Sheehan" <triswimjoehotmail.com>
    >CC: [email]php-generallists.php.net[/email]
    >Subject: Re: [PHP] Session Problems with 4.3.2
    >Date: Tue, 22 Jul 2003 10:01:03 -0700
    >
    >Were you planning on incrementing $_SESSION['count'] anywhere? If not, try
    >
    ><?php isset($_SESSION['count']) ? echo "Yes.\n" : echo "No.\n"; ?>
    >
    >
    >
    >
    >
    >On Tuesday 22 July 2003 09:55 am, Joe Sheehan wrote:
    > > Just noticed my email was messed up because of the html. Sorry
    > > about that
    > >
    > > I've been using up until a day or so ago version 4.0.6.
    > > I'm moving everything now to 4.3.2 but
    > > having problems with sessions. I've tried a basic example
    > > but can't retrieve session values.
    > > Can anyone tell me what I'm doing wrong? I see the session file
    > > is created but can't retrieve its value. What is interesting
    > > is the script I go to in order to retrieve my value also created
    > > a file but it's empty. Thanks in advance.
    > >
    > > php example
    > >
    > > <?php
    > > $title="SESSION_TEST_SESSION_ONE";
    > > session_start();
    > > $_SESSION['count'] = 15;
    > >
    > > ?>
    > >
    > > //<head>
    > > //<title><? echo $title; ?></title>
    > > //<h3><? echo $count; ?></h3>
    > > //</head>
    > > //<body>
    > > //<? echo $_SESSION['count']; ?>
    > > //<? echo " "; ?>
    > > //<a href=session_next.php>session_next</a><br>
    > > //</body>
    > >
    > >
    > > *****************session_next.php
    > > #!/bin/php
    > >
    > > <?php
    > > $title="SESSION_NEXT";
    > > session_start();
    > > ?>
    > >
    > > //<head>
    > > //<title><? echo($title); ?></title>
    > > /</head>
    > > //<body>
    > > //<? echo " "; ?>
    > > //<h3><? echo $_SESSION['count']; ?></h3>
    > > //</body>
    > >
    > > __________________________________________________ _______________
    > > MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
    > > http://join.msn.com/?page=features/virus
    >
    >--
    >"Everything has a natural explanation. The moon is not a god but a great
    >rock
    >and the sun a hot rock."
    >
    >-Anaxagorus
    >
    >
    >--
    >PHP General Mailing List (http://www.php.net/)
    >To unsubscribe, visit: http://www.php.net/unsub.php
    >
    __________________________________________________ _______________
    MSN 8 with e-mail virus protection service: 2 months FREE*
    http://join.msn.com/?page=features/virus

    Joe Sheehan Guest

  2. #2

    Default Re: [PHP] Session Problems with 4.3.2

    Try appending <?php echo SID; ?> to the url (perhaps cookies are off in
    browser)

    If that doesn't work, try the example at php.net/session



    On Tuesday 22 July 2003 11:49 am, you wrote:
    > It echo No. Have no idea why its not set?
    > Even tried using session_register with register_globals on
    > but no luck either.
    > Anyone have any idea what i'm doing wrong? I'm hoping its just
    > a user error.
    > Thanks in advance
    >
    >
    >
    > From: Evan Nemerson <evancoeus-group.com>
    >
    > >To: "Joe Sheehan" <triswimjoehotmail.com>
    > >CC: [email]php-generallists.php.net[/email]
    > >Subject: Re: [PHP] Session Problems with 4.3.2
    > >Date: Tue, 22 Jul 2003 10:01:03 -0700
    > >
    > >Were you planning on incrementing $_SESSION['count'] anywhere? If not, try
    > >
    > ><?php isset($_SESSION['count']) ? echo "Yes.\n" : echo "No.\n"; ?>
    > >
    > >On Tuesday 22 July 2003 09:55 am, Joe Sheehan wrote:
    > > > Just noticed my email was messed up because of the html. Sorry
    > > > about that
    > > >
    > > > I've been using up until a day or so ago version 4.0.6.
    > > > I'm moving everything now to 4.3.2 but
    > > > having problems with sessions. I've tried a basic example
    > > > but can't retrieve session values.
    > > > Can anyone tell me what I'm doing wrong? I see the session file
    > > > is created but can't retrieve its value. What is interesting
    > > > is the script I go to in order to retrieve my value also created
    > > > a file but it's empty. Thanks in advance.
    > > >
    > > > php example
    > > >
    > > > <?php
    > > > $title="SESSION_TEST_SESSION_ONE";
    > > > session_start();
    > > > $_SESSION['count'] = 15;
    > > >
    > > > ?>
    > > >
    > > > //<head>
    > > > //<title><? echo $title; ?></title>
    > > > //<h3><? echo $count; ?></h3>
    > > > //</head>
    > > > //<body>
    > > > //<? echo $_SESSION['count']; ?>
    > > > //<? echo " "; ?>
    > > > //<a href=session_next.php>session_next</a><br>
    > > > //</body>
    > > >
    > > >
    > > > *****************session_next.php
    > > > #!/bin/php
    > > >
    > > > <?php
    > > > $title="SESSION_NEXT";
    > > > session_start();
    > > > ?>
    > > >
    > > > //<head>
    > > > //<title><? echo($title); ?></title>
    > > > /</head>
    > > > //<body>
    > > > //<? echo " "; ?>
    > > > //<h3><? echo $_SESSION['count']; ?></h3>
    > > > //</body>
    > > >
    > > > __________________________________________________ _______________
    > > > MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
    > > > http://join.msn.com/?page=features/virus
    > >
    > >--
    > >"Everything has a natural explanation. The moon is not a god but a great
    > >rock
    > >and the sun a hot rock."
    > >
    > >-Anaxagorus
    > >
    > >
    > >--
    > >PHP General Mailing List (http://www.php.net/)
    > >To unsubscribe, visit: http://www.php.net/unsub.php
    >
    > __________________________________________________ _______________
    > The new MSN 8: advanced junk mail protection and 2 months FREE*
    > http://join.msn.com/?page=features/junkmail
    --
    "If one were to take the bible seriously one would go mad. But to take the
    bible seriously, one must be already mad."

    -Aleister Crowley

    Evan Nemerson Guest

  3. #3

    Default Re: [PHP] Session Problems with 4.3.2

    (Power went out in my area for the last four hours)
    Thanks for all the feedback.

    Anyway, just to make sure my scripts etc were correct I
    threw 4.2 back in using the same ini that I was with 4.3.2
    No problems with 4.2 but 4.3.2 doesn't work. Page1.php works
    properly by creating the session file with the value but page2.php
    acts as if it needs to create one as well but the file has zero size.

    I'm curious if it has to do with how 4.3.2 now builds.

    I use
    ../configure
    --prefix=/ext
    --without-pear
    --with-mysql
    --enable-sockets
    --enable-memory-limit
    --with-gnu-ld
    --with-pgsql=/usr/include/pgsql

    when I built 4.0.6, 4.2 and 4.3.2. What is interesting is for 4.3 it does
    not build the php daemon
    within the main directory. I'm curious if I'm missing sometype of config
    option thats throwing this off.
    Could that be my problem? haven't had a problem with 4.0.6 or 4.2
    Which daemon in 4.3 is the correct one which is the standalone
    similar to 4.2 and 4.0.6. I hope its just a user error at this point.

    Thanks



    >From: Evan Nemerson <evancoeus-group.com>
    >To: "Joe Sheehan" <triswimjoehotmail.com>, [email]php-generallists.php.net[/email]
    >Subject: Re: [PHP] Session Problems with 4.3.2
    >Date: Tue, 22 Jul 2003 13:10:40 -0700
    >
    >Try appending <?php echo SID; ?> to the url (perhaps cookies are off in
    >browser)
    >
    >If that doesn't work, try the example at php.net/session
    >
    >
    >
    >On Tuesday 22 July 2003 11:49 am, you wrote:
    > > It echo No. Have no idea why its not set?
    > > Even tried using session_register with register_globals on
    > > but no luck either.
    > > Anyone have any idea what i'm doing wrong? I'm hoping its just
    > > a user error.
    > > Thanks in advance
    > >
    > >
    > >
    > > From: Evan Nemerson <evancoeus-group.com>
    > >
    > > >To: "Joe Sheehan" <triswimjoehotmail.com>
    > > >CC: php-generallists.php.net
    > > >Subject: Re: [PHP] Session Problems with 4.3.2
    > > >Date: Tue, 22 Jul 2003 10:01:03 -0700
    > > >
    > > >Were you planning on incrementing $_SESSION['count'] anywhere? If not,
    >try
    > > >
    > > ><?php isset($_SESSION['count']) ? echo "Yes.\n" : echo "No.\n"; ?>
    > > >
    > > >On Tuesday 22 July 2003 09:55 am, Joe Sheehan wrote:
    > > > > Just noticed my email was messed up because of the html. Sorry
    > > > > about that
    > > > >
    > > > > I've been using up until a day or so ago version 4.0.6.
    > > > > I'm moving everything now to 4.3.2 but
    > > > > having problems with sessions. I've tried a basic example
    > > > > but can't retrieve session values.
    > > > > Can anyone tell me what I'm doing wrong? I see the session file
    > > > > is created but can't retrieve its value. What is interesting
    > > > > is the script I go to in order to retrieve my value also created
    > > > > a file but it's empty. Thanks in advance.
    > > > >
    > > > > php example
    > > > >
    > > > > <?php
    > > > > $title="SESSION_TEST_SESSION_ONE";
    > > > > session_start();
    > > > > $_SESSION['count'] = 15;
    > > > >
    > > > > ?>
    > > > >
    > > > > //<head>
    > > > > //<title><? echo $title; ?></title>
    > > > > //<h3><? echo $count; ?></h3>
    > > > > //</head>
    > > > > //<body>
    > > > > //<? echo $_SESSION['count']; ?>
    > > > > //<? echo " "; ?>
    > > > > //<a href=session_next.php>session_next</a><br>
    > > > > //</body>
    > > > >
    > > > >
    > > > > *****************session_next.php
    > > > > #!/bin/php
    > > > >
    > > > > <?php
    > > > > $title="SESSION_NEXT";
    > > > > session_start();
    > > > > ?>
    > > > >
    > > > > //<head>
    > > > > //<title><? echo($title); ?></title>
    > > > > /</head>
    > > > > //<body>
    > > > > //<? echo " "; ?>
    > > > > //<h3><? echo $_SESSION['count']; ?></h3>
    > > > > //</body>
    > > > >
    > > > > __________________________________________________ _______________
    > > > > MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
    > > > > http://join.msn.com/?page=features/virus
    > > >
    > > >--
    > > >"Everything has a natural explanation. The moon is not a god but a
    >great
    > > >rock
    > > >and the sun a hot rock."
    > > >
    > > >-Anaxagorus
    > > >
    > > >
    > > >--
    > > >PHP General Mailing List (http://www.php.net/)
    > > >To unsubscribe, visit: http://www.php.net/unsub.php
    > >
    > > __________________________________________________ _______________
    > > The new MSN 8: advanced junk mail protection and 2 months FREE*
    > > http://join.msn.com/?page=features/junkmail
    >
    >--
    >"If one were to take the bible seriously one would go mad. But to take the
    >bible seriously, one must be already mad."
    >
    >-Aleister Crowley
    >
    __________________________________________________ _______________
    The new MSN 8: advanced junk mail protection and 2 months FREE*
    http://join.msn.com/?page=features/junkmail

    Joe Sheehan Guest

Similar Threads

  1. Session problems
    By Daniel Bengs in forum Coldfusion Server Administration
    Replies: 21
    Last Post: June 21st, 06:57 PM
  2. Session Problems....
    By dspent in forum Macromedia ColdFusion
    Replies: 0
    Last Post: June 20th, 04:47 PM
  3. Session, SES, and SSL - Major session problems
    By revdave in forum Coldfusion - Advanced Techniques
    Replies: 0
    Last Post: April 23rd, 05:50 PM
  4. PHP & SESSION problems
    By Billy in forum PHP Development
    Replies: 2
    Last Post: September 25th, 05:01 PM
  5. session problems in php 4.3.2
    By Tassos T in forum PHP Development
    Replies: 0
    Last Post: July 10th, 10:26 AM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139