At 22:19 17/02/2006, you wrote:
From: Chris Payne [EMAIL PROTECTED]
To: php-db@lists.php.net
Date: Fri, 17 Feb 2006 17:18:57 -0500
Message-ID: [EMAIL PROTECTED]
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary==_NextPart_000_000F_01C633E6.3C6626A0
Subject: Sessions
-Original Message-
From: John Holmes [mailto:[EMAIL PROTECTED]
You are wrong. :)
Having register_globals OFF helps to prevent poorly written programs
from being vulnerable to
users setting variables in the URL/header/cookie data. You can still
write horribly insecure
programs
Hi, if your register_global = on you can do it like you do, if
register_global = off, use it like this:
session_start();
session_register(session_username); //or $_SESSION[session_username]
= null;
session_register(session_level); // or $_SESSION[session_level] = null;
correct me if i am wrong but i have been told it is bad and insecure
to use register_global=on
i have seen many comercial scripts that rely on this and it just makes me laugh
On Sat, 11 Dec 2004 16:48:05 +0800, Shen Kong [EMAIL PROTECTED] wrote:
Hi, if your register_global = on you can do it
From: Joseph Crawford [EMAIL PROTECTED]
correct me if i am wrong but i have been told it is bad and insecure
to use register_global=on
You are wrong. :)
Having register_globals OFF helps to prevent poorly written programs from being
vulnerable to users setting variables in the
might seem a bit long winded but this is how I would code it
$sql = INSERT INTO $table ( salutation, name, city} VALUES {
$sql .= '.$_SESSION{'salutation'].',
$sql .= '.$_SESSION{'name'].',
$sql .= '.$_SESSION{'city'].' )
mysql_query($sql);
regards
pete
mysql_query(INSERT INTO $table (
I'm not sure that this code will work.
Try to use $_SESSION['..'] and (..). [Don't use the {, } for this purposes.
vio-
- Original Message -
From: pete M [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 16, 2003 4:02 PM
Subject: [PHP-DB] Re: Sessions and MySQL?
might
It recently happened to me too... however, I use the session_id() to keep
track of the same session... I also use a table to check on who's who..
Anyway, it was working fine and all of a sudden the client complained that
no one can log in... I echoed the session id of the pages and saw that
make sure that there is no character anywhere before session_start().
this also includes whitspaces.
so check you're files, if there are whitspaces before the ?php
or if there's any include file included before the session_start,
which has whitspaces before the ?php or after the ?.
of course you
Hi there, make sure you aren't outputting anything to the browser prior to
sending headers ie the echos on top of page 3. When you register a session
variable you should assign it a value ie:
session_register(mysessionvar);
$mysessionvar = $whateveryouwish;
Also make sure session_start(); is at
i don't think frames are the problem.
check again if you printing anything in same frame before session_start();
Tjaybelt [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I have a site that is successfully using sessions and authentication.
However, I am working
http://www.phpbuilder.com/columns/
good articles on sessions
Steve
Nirat [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
can anyone guide me to using sessions in PHP i've tried it a lot of times
but its not working. any help tutorials would be helpful...
--
Configure PHP with this line included --enable-trans-sid This will
automatically put the session ID after every URL if the user does not have
cookies enabled.
Josh Hoover
KnowledgeStorm, Inc.
Searching for a new IT solution for your company? Need to improve your
product marketing?
Visit
. Februar 2001 15:00
An: 'Pankaj Ahuja'; php-db list
Betreff: RE: [PHP-DB] Re: sessions
Configure PHP with this line included --enable-trans-sid This will
automatically put the session ID after every URL if the user does not have
cookies enabled.
Josh Hoover
KnowledgeStorm, Inc.
Searching
14 matches
Mail list logo