Professional Web Applications Themes

Problems with session on my localhost - PHP Development

Hello, Things are running pretty fast in this NG, and my last posting (yesterday) seems already to be vanished in the flood - without any response. Therefor I pose the question once more: PHP 4.3.1 I have problems using sessions on my localhost, whereas it works fine when uploaded to my web-hotel. I've made a small test-app consisting of two pages, each of which starts by a call to session_start(). In the first one I set $_SESSION["myvar"]="A value"; And check it by echoing it - works fine. In the second one I also check it by echoing: ECHO $_SESSION["myvar"]; But ...

  1. #1

    Default Problems with session on my localhost

    Hello,

    Things are running pretty fast in this NG, and my last posting (yesterday)
    seems already to be vanished in the flood - without any response. Therefor I
    pose the question once more:

    PHP 4.3.1
    I have problems using sessions on my localhost, whereas it works fine when
    uploaded to my web-hotel. I've made a small test-app consisting of two
    pages, each of which starts by a call to session_start(). In the first one I
    set $_SESSION["myvar"]="A value"; And check it by echoing it - works fine.
    In the second one I also check it by echoing: ECHO $_SESSION["myvar"]; But
    it appears to be empty. Can anyone tell me what is going on here ?


    Cheers,

    RHO


    RHO Guest

  2. #2

    Default Re: Problems with session on my localhost

    > I've made a small test-app consisting of two
    > pages, each of which starts by a call to session_start(). In the first
    one I
    > set $_SESSION["myvar"]="A value"; And check it by echoing it - works
    fine.
    > In the second one I also check it by echoing: ECHO $_SESSION["myvar"];
    But
    > it appears to be empty.
    Did you try to reload first page ? Did it work fine then ?

    Regards,
    ABS


    abs Guest

  3. #3

    Thumbs up Re: Problems with session on my localhost

    Problem solve ....
    my php(session) can run in localhost

    i use this software...
    http://sourceforge.net/projects/netserver/

    NetServer...

    just run the software. then
    1. click "Manage Servers"
    2. Install All (Apache Web Server , mysql Server and "hMailServer")

    before this i also have the same problem...

    when i install "hMailServer", my php (session) is working...

    This software is easy to use (for newbe)
    Jauh Merah Guest

Similar Threads

  1. Session, SES, and SSL - Major session problems
    By revdave in forum Coldfusion - Advanced Techniques
    Replies: 0
    Last Post: April 23rd, 05:50 PM
  2. Session scope not working from localhost
    By Memphis101 in forum Macromedia ColdFusion
    Replies: 1
    Last Post: March 16th, 10:56 PM
  3. Replies: 5
    Last Post: June 24th, 12:28 PM
  4. [PHP] Session Problems with 4.3.2
    By Joe Sheehan in forum PHP Development
    Replies: 2
    Last Post: July 22nd, 11:35 PM
  5. Something simple!? Sessions - admin.localhost to main.localhost
    By Dave Mateer in forum PHP Development
    Replies: 2
    Last Post: July 1st, 07:57 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