Help!
I am using an apache server with Linux.

I am trying to create a secure website on which users will register using a mysql server.

I am using session_start and then session_register to register the username. I then use the registered username to authenticate later pages.

The process works fine on all versions of Netscape, but not Internet Explorer.
I try to register a variable and get nothing for username if I try to print it out on subsequent pages.

I've read something about session_cache_limiter() before starting a session, but this does not work either.

Does anyone have any suggestions?

    i use sessions successfully on ie5.
    As far as I know I get it work with only a call to session_register .

    ie no call to session_start is made

    give it a burl!

      How is the session id being propagated? The are two ways of propagating the seesion id, through the URL parameter or through cookies. My guess it that your setup is propagating it through cookie and that your IE5 setup is currently setup to ignore cookie.

      Just a thought...

      Ed

        Here is an example of how a start the session:
        Login.php:
        <? session_start() ?>
        <?

        {Sql query to see if $user is in the database}
        sesion_register(user);
        ?>

        Now in checklogin.php tag include on secure page:
        <? session_start() ?>
        <?
        if (isset($user))
        {Redirect to a secure page}
        else
        print("The user name is ($user)");
        ?>

        The final line on Internet Explorer prints:
        The user name is ()
        Netscape works fine and redirects to the correct page.

        I've allowed cookies on IE and just about allowed everything security wise to try and get it to work, but have still been unsuccesful. This is not all the code in these files, but it is the only applicable lines. Remember, everything work perfectly on Netscape.

        Any ideas from anyone?

        Drew

          This is a wild shot...

          Can you try using $HTTP_SESSION_VAR['user'] instead of $user?

          Since your page works with Netscape I highly doubt if that's the problem but it's worth a shot.

          What version of PHP are you using? What is your setting for track_vars and register_globals in php.ini file?

          Ed

            I tried $HTTP_SESSION_VAR['user'] to no avail.

            In php.ini, register_globals = On and it says track_vars is always on since php 4.0.3 so I'm asuming it's on.

            Am I doing it the correct way, or is it a configuration problem?
            Am I the only one with this problem?

            Thanks,
            Drew

              Write a Reply...