I am using the MX04 and PHP 4.3x to auto generate and authenticate a login
page but sessions just seem to be lost on submit???



When I call the login page this session is started;-

sess_eff5bcd126b406d7e99fee19727f85d3

  and this is the contents:-
   username|N;

once I have submitted the data is submitted the above session contains :-


   username|N;MM_Username|s:1:"a";MM_UserGroup|s:1:"a";

and if login is successful I am taken to the welcome page where the
session_start(); should have the name available  but instead a new blank
session is created

   sess_774fbd3a8ebb478e49a98dd69e5eb79f

I have set auto_session Start to on, set trans_id to on in the PHP>ini
filebut no good,

I have tried using $HTTP_SESSION_VAR[];
no good

Anybody have any ideas

PLEASE

Stu




MY earlier related post for background.................




Hello, and I hope to god someone in here can answer my question as I am at
my wits end.


System, Mysql 4xx, php 4.3x, DWMX 2004, phpMyadmin 2.5, WinXP Pro, IIS

Will be uploading to a unix server

THE PLAN
to register users in a LOGIN table, if successful take them to the login
page where they login, and this brings up a page with their info from the
registration process .


THE PROBLEM
I am using DWMX04 to create and populate these tables and all seems well. I
can  successfully register a new user in the LOGIN  table, but when I go to
login in the login_id (The Master Key for all subsequent tables and tows
related to this user) is not made available to the target page and the
default is used so no matter who logs in they always see the info for the
first user.

..

this is the dynamic table entry
                    $colname_rs_log_info = "1";
                            if (isset($_GET['login_id'])) {
                              $colname_rs_log_info =
(get_magic_quotes_gpc()) ? $_GET['login_id'] :
addslashes($_GET['login_id']);these take them to a welcome page with
this is the update entry
                    $colname_rs_login_check = "1";
                    if (isset($_COOKIE['login_id'])) {
                      $colname_rs_login_check = (get_magic_quotes_gpc()) ?
$_COOKIE['login_id'] :                     addslashes($_COOKIE['login_id']);
                    }

I have tried all the combinations of the recordset wizard (except the
correct one - no doubt), I have checked that session_start(); is on and that
global variables is on (though I would have to turn these off when uploading
to hosting server).

Thanks in advance

stu









-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to