On Mon, 6 Sep 2004 13:33:02 +0800, in php.general
[EMAIL PROTECTED] (Jason Wong) wrote:
$username = trim(addslashes($_POST['user_name']));
$pass = trim(addslashes($_POST['password']));
addslashes() is not needed as you're performing SELECT query and not an INSERT
query.
How did you come
Dre wrote:
and by the way ..
I'm using MS Windows XP Pro. which I do believe that it has some hand in the
problem :)
Like you did not change session.save_path setting in php.ini from /tmp
to whatever it is supposed to be on windows.
Dre [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
--- Jason Wong [EMAIL PROTECTED] wrote:
$username = trim(addslashes($_POST['user_name']));
$pass = trim(addslashes($_POST['password']));
addslashes() is not needed as you're performing SELECT query
and not an INSERT query.
That's not true, since he's using user data in the SQL statement.
no I did this a long time ago
(I did have this problem before :o) )
Marek Kilimajer [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Dre wrote:
and by the way ..
I'm using MS Windows XP Pro. which I do believe that it has some hand in
the
problem :)
Like you did not change
Dre wrote:
no I did this a long time ago
(I did have this problem before :o) )
Try echo $_REQUEST[session_name()]; in members/main.php. It should print
the session id. Then there should be a session file sess_[session id].
Marek Kilimajer [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On Monday 06 September 2004 14:08, Peter Brodersen wrote:
On Mon, 6 Sep 2004 13:33:02 +0800, in php.general
[EMAIL PROTECTED] (Jason Wong) wrote:
$username = trim(addslashes($_POST['user_name']));
$pass = trim(addslashes($_POST['password']));
addslashes() is not needed as you're
I don't know why but session variables does not get posted .. is there any
thing in the php.ini that I should configure as
I can't find any thing wrong in the code I'm using !!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Dre wrote:
I don't know why but session variables does not get posted .. is there any
thing in the php.ini that I should configure as
I can't find any thing wrong in the code I'm using !!
Session variables are not posted, they are kept on the server. Only the
session id is sent as a cookie, get
I do know this
and what happen is that the $_SESSION array become empty once I redirect
from the login page (after login) to another members' area page .. !!
Marek Kilimajer [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Dre wrote:
I don't know why but session variables does not
Dre wrote:
I do know this
and what happen is that the $_SESSION array become empty once I redirect
from the login page (after login) to another members' area page .. !!
That means you are loosing your session. Is the session id sent? Is the
session file (usualy in /tmp) created?
Marek Kilimajer
Dre wrote:
I do know this
and what happen is that the $_SESSION array become empty once I redirect
from the login page (after login) to another members' area page .. !!
Are you starting the session on every page? How are you sending the
session id?
--
By-Tor.com
It's all about the Rush
this is the username/password validation script which receives the user name
and password from a regular form
and they are sent correctly
logme_in.php
//==
==
?php
session_start();
$username =
and by the way ..
I'm using MS Windows XP Pro. which I do believe that it has some hand in the
problem :)
Dre [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I do know this
and what happen is that the $_SESSION array become empty once I redirect
from the login page (after login) to
Dre wrote:
snip
if((empty($_POST['user_name'])) || (empty($_POST['password'])))
{
header('Location: index.php');
include(login_form);
exit();
}
That include is useless, as you're forwarding to another document right
before it.
else{
include(db.php);
$sql = SELECT * FROM
yes I'm sure
John Nichel [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Dre wrote:
snip
if((empty($_POST['user_name'])) || (empty($_POST['password'])))
{
header('Location: index.php');
include(login_form);
exit();
}
That include is useless, as you're
Dre wrote:
yes I'm sure
Won't hurt to echo it out.
--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Please do not top post.
On Monday 06 September 2004 06:53, Dre wrote:
As well as what everybody else has said ...
$username = trim(addslashes($_POST['user_name']));
$pass = trim(addslashes($_POST['password']));
addslashes() is not needed as you're performing SELECT query and not an
17 matches
Mail list logo