PHP page killing session on submit!!

2004-03-22 Thread sgannon60

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 PHPini
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]



PHP MYSQL DWMX04 can't link tables

2004-03-19 Thread sgannon60
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]



PHP and using mysql_last_id()

2004-03-16 Thread sgannon60
Hi can anyone tell me how to use php's mysql_last_id()  or MySQL's
INSERT_LAST_ID


I have a page registration page, using a username, password and member level
text box.

I want to send the user (upon successful insert) to a member's detail form
where the password table primary key is avaliable it can be kept and entered
to subsequent tables as a Foriegn Key.

But when I have tried it all I ever get is a value of 1.

I have looked at the manuals online and found a couple of books that list
these functions, and understand the syntax qnd what it does,

but can not find a working example or inducation as to where it goes etc

any pointers would be much appreciated

stu


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



Http post not working HELP!

2003-06-16 Thread sgannon60
I am using PHP, Mysql on IIS5.

Process
1 -  submit a unique user name, password
2-  check against database and if successful enter details in database which
creates a primary key which is the constant between the client details table
and the projects
3 - when a successful login if the first time a blank client details form,
or if an existing client an update form with list of projects.


I do not understand how to get the primary key generated after the initial
submission to be available on each page to tie all the elements to the right
client.

I am thinking if I send the unique username as a form variable or http
variable I can use that to filter the password table to finfd the unique ID

 Mind you if I do that why don't I just use the username as the unique
Element

The problem now is that something that my book is telling m,e is dead simple
aint so simple for me.

When I try to read the form variable I get 
Notice: Undefined index: username in c:\inetpub\wwwroot\ias_php\success.php
on line 9

I have tried altering this parameter to 1 for an IIS server with no joy.
cgi.rfc2616_headers = 0


This is the page in question.

html
head
titleUntitled Document/title
meta http-equiv=Content-Type content=text/html; charset=iso-8859-1
/head

body
pseuceees
?php $HTTP_POST_VARS['username']; ?

/p
pnbsp; /p
/body
/html

Any pointers or answers will be much appreciated

Steve



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



PHP, MYSQL and persistant authentication

2003-06-13 Thread sgannon60
Hi,
Does anyone know of a good tutorial on setting up a login page, and passing
the login primary key to other pages so that other tables will be able to
refernce the unique login

thanks
steve

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