Hey,
I am working on the application, thought its not OOP currently, I plan to
take it further in a year or so.
Right now, I have 4 access levels which define what the users can do on the
application.
Based on the access levels defined, a session varialble is set called
$_SESSION['authtype'], and
Hi-
Since you are checking the authtype variable in the environmental variable
for each page which is requested, There cannot be any chance for a intruder
to get access to the page. But then, for an enhanced security, do maintain
a table in db with relation between authtype and access to page and
Hey,
I am working on the application, thought its not OOP currently, I plan to
take it further in a year or so.
Right now, I have 4 access levels which define what the users can do on the
application.
Based on the access levels defined, a session varialble is set called
Yup, With some help from Jey earlier today, I was able to figure it out.. I
only realized it later, how easy it was since all the auth types were being
set already, the same piece of code at the beginning of every page should
have been good !
Thanks,
Vinay
On Thu, Mar 29, 2012 at 7:28 PM,
On 28 September 2010 03:06, Ron nha...@gmail.com wrote:
Hi,
i would like to ask how to set the session expiration.
on my site when a user logs in, i assign it to $_SESSION['username']
and on each page i check if (isset($_SESSION['username']) if not i redirect
it back to login page.
my
Hi,
i would like to ask how to set the session expiration.
on my site when a user logs in, i assign it to $_SESSION['username']
and on each page i check if (isset($_SESSION['username']) if not i
redirect it back to login page.
my problem is it seems like it expires very fast when there's no
I have a problem with my system, not sure how I can fix this one. A user has
a log in page and takes them to different pages, now each of these pages has
a check to make sure they are logged in with the following code:
session_start();
if (!(isset($_SESSION['username']) $_SESSION['username'] !=
On 14 May 2010 18:47, Barry Zimmerman barryzi...@googlemail.com wrote:
I have a problem with my system, not sure how I can fix this one. A user has
a log in page and takes them to different pages, now each of these pages has
a check to make sure they are logged in with the following code:
Barry,
Did you try to use setcookie with expiry date in the past? You could
use
setcookie before header function of the following manner.
session_start();
if (!(isset($_SESSION['username']) $_SESSION['username'] != '')) {
setcookie(session,session id, 1);
header (Location: login.html);
}
Best
id also suggest to revisit the entire login script that you have attached,
its a bit overly complicated. Keep amount of if statements to the minimum
and you will not get lost. Try to keep it simple.
Session is not a problem for you, just make a very simple set of rules when
user is logging in,
Barry,
session_start(); will not wipe clean the user's session so there is
something else going on.
Does the login.html authentication script correctly set
$_SESSION['username'] ?
Also, it has been my experience that code like
isset($_SESSION['username']) is better if you replace
Here I have a blog I setup but have not finished regarding web
application authentication which includes source code and classes you
can utilize.
Unfortunately I have not been able to finish writing the article due to
three jobs and school work. I can however assist you in getting it up
and
Hey Guys,
I need some help on an effficient session management, right now what I do is
check if the user has loggedin using his username, and create a
SESSION['logged']=1, setting a login flag actually, I am not sure if this is
the best way ?
What do you guys use for sessions, and which is the
How secure would you want it? Is this is a public facing web application?
Are you in a shared hosting environment vs. a dedicated hosting
environment? Do you require alternative session management such as
database or mcache vs. flat file session support?
Have you thought about cross site
Hi Jason,
Yes this is going to be a public facing application with 3 level heirarchy,
and maybe around 100 tiny companies(3-4 employees) using it.
App is going to be on a Hosted Server.
DB session mgmt would be a bit slower, is it? I have thought about cross
site forgery and session hijacking,
Karl DeSaulniers wrote:
What is the best way to set a user timeout on a session?
Say if the user steps away from their computer for say 5 min,
and they come back to the page they were on, I want when the user clicks
something
for the session to kick them off and redirect to login saying their
What is the best way to set a user timeout on a session?
Say if the user steps away from their computer for say 5 min,
and they come back to the page they were on, I want when the user
clicks something
for the session to kick them off and redirect to login saying their
session has timed out.
I'm trying to show picture from database. Everything works until I add
variable into where part of the query.
It works with plain number. example ...WHERE id=11... ...picture is shown on
the page.
Here's the code that retrieves the picture. show_pic.php
?php
function
On Feb 12, 2009, at 6:07 AM, Mika Jaaksi wrote:
I'm trying to show picture from database. Everything works until I add
variable into where part of the query.
It works with plain number. example ...WHERE id=11... ...picture is
shown on
the page.
Here's the code that retrieves the picture.
hi all,
i'm a newbie and i really would like to be able to understand how session works.
for the scenario, i have customers with two users login to manage their records
(like adding their own customers). e.g. customer A has a username customera1
and customera2, customer B has customerb1 and
: [PHP-DB] session handling
hi all,
i'm a newbie and i really would like to be able to understand how session
works.
for the scenario, i have customers with two users login to manage their
records (like adding their own customers). e.g. customer A has a username
customera1 and customera2, customer B
2. This is trickier. What do you mean with access? Are you talking about
lost updates? Are you talking about simple read-operations? Actually, even
as
you claim you're a newbie, you're asking questions that are keeping us all
up
at night! :-) The solutions vary depending on your situation.
difficult to use a session if any user logging out would log every other
user out.
Hope this helps, Aaron.
-Original Message-
From: Nhadie Ramos [mailto:[EMAIL PROTECTED]
Sent: Monday, April 28, 2008 10:05 AM
To: php-db@lists.php.net
Subject: [PHP-DB] session handling
hi all,
i'm
anita; [EMAIL PROTECTED]
Cc: php-db@lists.php.net
Subject: RE: [PHP-DB] Session Problem
are you sure that the problem is not in the browser settings (not to
accept
session cookies)?
Bastien
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
CC: php-db@lists.php.net
Subject: RE: [PHP-DB
Subject: Re: [PHP-DB] Session Problem
what version of php are you using? i ran across a problem with
sessions not working for windows in php 5.2 because the directories
for the sessions were not created.
On 1/12/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
I don't think that the problem
are you sure that the problem is not in the browser settings (not to accept
session cookies)?
Bastien
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
CC: php-db@lists.php.net
Subject: RE: [PHP-DB] Session Problem
Date: Fri, 12 Jan 2007 15:34:06 +0900
1. Did you mean that on phpinfo
[mailto:[EMAIL PROTECTED]
Sent: Saturday, January 13, 2007 12:21 AM
To: Adman, Nur anita; [EMAIL PROTECTED]
Cc: php-db@lists.php.net
Subject: RE: [PHP-DB] Session Problem
are you sure that the problem is not in the browser settings (not to
accept
session cookies)?
Bastien
From: [EMAIL
Dear All,
I need some help please...
I'm developing an web application using PHP/MySQL, and its has been
running on my company.
I'm planning to migrate the system on a new server.
I have installed everything that are needed on the new server to running
the web application.
But I'm
1. Is session support compiled into PHP, or if not, is the module there and
being loaded? phpinfo() will tell you.
If not, recompile PHP or build the dynamic module to support sessions.
2. If so, check the location of session.save_files and make sure it is
writable by the web server
Beckman [mailto:[EMAIL PROTECTED]
Sent: Friday, January 12, 2007 2:27 PM
To: Adman, Nur anita
Cc: php-db@lists.php.net
Subject: Re: [PHP-DB] Session Problem
1. Is session support compiled into PHP, or if not, is the module there
and
being loaded? phpinfo() will tell you.
If not, recompile PHP
What is the syntax for pulling a field out of a query and setting it as a
session variable?
Thanks,
Jon
--
Jonathan Gravois
Omni Sports Technologies
800.529.6664 X125
http://www.omnisportstech.com
Quote: Failure is not the only punishment for laziness; there is also the
success of others. --
JONATHAN GRAVOIS wrote:
What is the syntax for pulling a field out of a query and setting it
as a session variable?
RTFM: http://php.net/mysqli (assuming you mean a MySQL query) and
http://php.net/session
Quote: Failure is not the only punishment for laziness; there is
also the success of
Hi everybody, I have a problem with mysql session handler and redirect.
My situation:
- mysql session handler
- one page is posted to another page, that saves a session variable
and redirect to the first page again.
If I do the redirect the variable is not properly setted, otherwise it's
all
Hi everybody, I have a problem with mysql session handler and redirect.
My situation:
- mysql session handler
- one page is posted to another page, that saves a session variable
and redirect to the first page again.
If I do the redirect the variable is not properly setted, otherwise it's
all
Philip Hallstrom ha scritto:
Don't use Header(Location:...). Instead spit back very minimal
javascript that does something like:
script
document.location.href = '.';
/script
That way the cookies that get sent back in the header will take affect.
I have to use header(Location...), cause
Philip Hallstrom ha scritto:
Don't use Header(Location:...). Instead spit back very minimal
javascript that does something like:
script
document.location.href = '.';
/script
That way the cookies that get sent back in the header will take affect.
I have to use header(Location...), cause
'] : $_SESSION['spwd']; //line 8
if(!isset($suid)) {
?
bastien
From: bo [EMAIL PROTECTED]
Reply-To: bo [EMAIL PROTECTED]
To: php-db@lists.php.net
Subject: [PHP-DB] session confusion| can anyone help?
Date: Fri, 26 Aug 2005 11:42:18 +0800
here is the code for accesscontrol.php which control
here is the code for accesscontrol.php which control the access to protected
page, the server gives an error as of
Notice: Undefined index: uid in E:\www\signup\accesscontrol.php on line 7
Notice: Undefined index: pwd in E:\www\signup\accesscontrol.php on line 8
I tried input username and
session_start() should be given at the starting of the file before others
u can include anthing after the session_satrt() functon only
On Fri, 26 Aug 2005, bo wrote:
here is the code for accesscontrol.php which control the access to protected
page, the server gives an error as of
Notice:
In my php.ini
I've enabled session.use_cookies=1
Everytime I initialize a session, it create the session storage file in
my /tmp
At the top my script, I've added session_start ();
In my test login function, this was what I did:
$_SESSION['username'] = 'abcdef';
session_set_cookie_params (time
Hello
I have tested this app on my machine but it doesnt do this - but when testing
on development server, my script is displaying the session in the url. I was
reading in man about session.use_only_cookies can keep this from happening but
the dev server has php 4.1.2
Is there another way to
Sorry
I posted this to wrong list - meant to send to general...should I re-post or no.
*
Hello
I have tested this app on my machine but it doesnt do this - but when testing
on development server, my script is displaying the session in the url. I was
sorry, forgot to change the subject :), just to be sure here is my question
again..
Hi everybody,
For quite a while i'm struggeled with my session. It doesn't seem to work,
can anyone help me?
This is my code:
page 1:
session_start();
$_SESSION[test] = tryin...;
if (isset($_SESSION[test]))
{
Subject: [PHP-DB] session
sorry, forgot to change the subject :), just to be sure here is my
question again..
Hi everybody,
For quite a while i'm struggeled with my session. It doesn't seem to work,
can anyone help me?
This is my code:
page 1:
session_start();
$_SESSION[test] = tryin
. Wils [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: Re: [PHP-DB] session
Date: Sun, 17 Oct 2004 09:46:06 -0400
MIME-Version: 1.0
Received: from pb1.pair.com ([216.92.131.4]) by mc5-f14.hotmail.com with
Microsoft SMTPSVC(5.0.2195.6824); Sun, 17 Oct 2004 06:47:55 -0700
Received: (qmail 35123 invoked
[EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Sunday, October 17, 2004 10:17 AM
Subject: Re: [PHP-DB] session
hey thanx it works, but
why is that? i mean, session are there to save data which te user cant
see... isnt there another way to pass the SID? i have the feeling passing
Back to my multi page form again ;)
I am going to try it with Session variables .
So, one thing is confusing me.
The page requires the user to be logged in and is
being tracked via authentication.
Do I still need to do a session_start();, at the
beginning of the form process ?
Stuart
--
PHP
Guys can anyone explain why this is returning odd results?
function getObject($class, $params=NULL) {
if (!is_array($_SESSION['objects'])) {
$_SESSION['objects'] = array();
}
if (!isset($_SESSION['objects'][$class])) {
if
Execuse me, i know i am not putting my question in right mail forum but i
trust that many of you can give me the right answer. also request you to
kindly give me email add. of mailing list where this type question should be
put up.
i am using
session_cache_limiter(public);
in one of my webpages,
Hi,
has anyone used session_cache_limiter('must-revalidate') before to solve the problem
on Warning: Page Expire..? i saw it on some websites, tried it and it worked for
me.. but i never come across this word officially in any books or sites..
Can someone kindly direct me to something that
Hello,
I am trying to start a blog page where the person selects their person they
want to view (bottom of the page) and then it somehow changes the session
variable (top of the code) and then accesses the database. I was wondering,
what is the correct way to do something like this. I have
Hi,
I have a problem with my session variables. I set them using for e.g.,
$_SESSION[user]=$name;
However, because of weak network links, somehow my $_SESSION variables get unset. Is
there a way to still keep the session variables even though the network is unstable??
i.e. as long as my
Session objects has nothing to do with weak network connections.
If your sessions gets un-set, it's most probably because you forgot the
session_start();
command in the beginning of some file that is using sessions. Without
that line, no sessions will be neither stored nor read.
Mike
On Apr
??
- Original Message -
From: Wendell Frohwein [EMAIL PROTECTED]
To: 'Ng Hwee Hwee' [EMAIL PROTECTED]
Sent: Tuesday, April 27, 2004 3:00 PM
Subject: RE: [PHP-DB] Session
Im sure you can store the session ID in a cookie. Then this will save
all your variables.
I hope this helps.
Wendell
-
From: Mikael Grön [EMAIL PROTECTED]
To: Ng Hwee Hwee [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, April 27, 2004 3:54 PM
Subject: Re: [PHP-DB] Session
Session objects has nothing to do with weak network connections.
If your sessions gets un-set, it's most probably because you forgot
Look out for session.gc_maxlifetime and session.gc_probability.
Regards, Torsten
- Original Message -
From: Mikael Grön [EMAIL PROTECTED]
To: Ng Hwee Hwee [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, April 27, 2004 3:54 PM
Subject: Re: [PHP-DB] Session
Session objects
: [PHP-DB] Session
Ng Hwee Hwee [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
thanx Mike,
i'm sure i have session_start() on all my pages. Why I'm so confident is
because my session gets unset occassionally and not everytime. i cannot
find
a pattern and so
, 2004 6:07 PM
Subject: Re: [PHP-DB] Session
Ng Hwee Hwee [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
thanx Mike,
i'm sure i have session_start() on all my pages. Why I'm so confident is
because my session gets unset occassionally and not everytime. i cannot
find
a pattern
more about it in future!!
look forward to your reply!
thanks again,
Hwee
- Original Message -
From: Torsten Roehr [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 27, 2004 6:48 PM
Subject: Re: [PHP-DB] Session
Hi Hwee,
of course you could set it to 43200 seonds if you
to check if a user is
logged in, the session is expired and so on.
Regards, Torsten
look forward to your reply!
thanks again,
Hwee
- Original Message -
From: Torsten Roehr [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 27, 2004 6:48 PM
Subject: Re: [PHP-DB] Session
From: Ng Hwee Hwee [EMAIL PROTECTED]
okie, my 'session.gc_maxlifetime' = 1440 and session.gc_probability = 1.
so, should I change it to something like 43,200 (12hours*60mins*60sec)??
for example, one person works a maximun of 12 hours a day. But does
it mean that by lengthening this value,
Hi -
John W. Holmes wrote:
The session does not exist past the point of closing the browser unless you
increase the lifetime of the session cookie itself. I would recommend you
just leave it at zero, though, meaning it only persists for as long as the
browser window is open. The longer you make
From: Hans Lellelid [EMAIL PROTECTED]
- keep your gc_maxlifetime as small as possible; that way if a user does
close their browser their session won't remain active for 12+ hours.
You might want to consider ways of periodically refreshing the page
using an iframe or even just a meta
On that note, here are a few things you might want to consider if you
want to make sessions more secure:
- use only cookies for sessions. (session.use_only_cookies = 1) This
prevents the session ID from *ever* being added to the URL. URLs get
logged -- by apache, by proxy servers, by user
Hi, I have a problem in handling session... so I just reply in this topic.
I have created a site... when user login from one browser ..i set a
session['user']
the problem is that when user open another browser ...he is not login ...he
have to login again...
So that 1 pc may login as 2 or
Depends on the browser. IE and Netscsape handle opening another window
differently.
Hi, I have a problem in handling session... so I just reply in this topic.
I have created a site... when user login from one browser ..i set a
session['user']
the problem is that when user open another
Do you mean a new browser window or a new browser? Like using IE first
and then netscape? If it's the latter, it wont be saved. It generates a
new session ID and wont use the same session as the first browser.
--
Marcjon
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe,
Hi
When I create an session var ...It stored in server right??
then everytime I change the session value then it should connect to the
server to update...is it still right??
When I want to change the session value and the connection is down then the
session value won't be update??
Thanks
Working with storing and reusing session variables.
If I use t1.php to generate a form, and the form
calls t2.php, the session vars are available.
If upgrade t1.php to recognize if it is the first
time it has been called versus the second time
e.g.
if (isset($some_session_var)) {
Howdy Listers,
Can someone explain to me the mechanism by which SID acquires a value?
For example,
$FOO = SID;
echo $FOO;
produces something like PHPSESSID=ade4055eef947f1a00cdb280470e859b when
IE is first opened and the page is loaded,
whereas reloading of the page produces an empty string
Howdy Listers,
Can someone explain to me the mechanism by which SID acquires a value?
For example,
$FOO = SID;
echo $FOO;
produces something like PHPSESSID=ade4055eef947f1a00cdb280470e859b when
IE is first opened and the page is loaded,
whereas reloading of the page produces an empty string
From: [EMAIL PROTECTED]
Can someone explain to me the mechanism by which SID acquires a value?
For example,
$FOO = SID;
echo $FOO;
produces something like PHPSESSID=ade4055eef947f1a00cdb280470e859b when
IE is first opened and the page is loaded,
whereas reloading of the page produces an
Sorry for the slightly off-topic post... I have a couple pages that
use a login page. If the user tries to bring up one of these pages without
being logged in, then the pages redirects him to the login page. After
successful login, the user is directed back to the page they were
I have installed an user-login aplication on my website (
http://www.norbertnet.ro ) but i have problems with session controls.
I receive all kinds of warnings and i don't know how to interpret them
thanks advanced
-
Want to chat instantly with your online
This is advertising a porno site.
-Original Message-
From: tana dsasa [mailto:[EMAIL PROTECTED]
Sent: 23 July 2003 11:11
To: [EMAIL PROTECTED]
Subject: [PHP-DB] session problem
I have installed an user-login aplication on my website (
http://www.norbertnet.ro ) but i have problems
you need to look in your php.ini file to see where it is dumping the session
data, then make sure that directory exits...
-Original Message-
From: Tim Winters [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 10:21 AM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Session error?
Ok,
Tried
some of the other errors occurred ( such as the headers already sent)
because you probably have white space before your php code.
Eddie
-Original Message-
From: Tim Winters [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 10:21 AM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Session
Warning: session_start() [ http://www.php.net/function.session-start
function.session-start]:
open(/tmp\sess_bf0c0a0a020087aa573e357a2553f828, O_RDWR) failed: No such
file or directory (2) in C:\Program Files\Apache
Group\Apache2\htdocs\MailOrderDynamic\c.php on line 6
The default
www.samplingtechnologies.com
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Office: 902 450 5500
Cell: 902 430 8498
Fax:: 902 484 7115
-Original Message-
From: CPT John W. Holmes [mailto:[EMAIL PROTECTED]
Sent: June 23, 2003 11:40 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP-DB] Session error?
Warning
Just put the full path of the dir.
For instance I placed mine at C:\php\session to keep things separated.
-M
-Original Message-
From: Tim Winters [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 12:31 PM
To: 'CPT John W. Holmes'; [EMAIL PROTECTED]
Subject: RE: [PHP-DB] Session
www.samplingtechnologies.com
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Office: 902 450 5500
Cell: 902 430 8498
Fax:: 902 484 7115
-Original Message-
From: Mike Brum [mailto:[EMAIL PROTECTED]
Sent: June 23, 2003 2:08 PM
To: [EMAIL PROTECTED]; 'CPT John W. Holmes';
[EMAIL PROTECTED]
Subject: RE: [PHP-DB] Session
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Session Question
Greetings all,
Now that my shopping cart is just about complete I've been working on
the
rest of the order process.
I have got two pages before finally placing an order. The first page
takes
address details and the next page prints them
Greetings all,
Now that my shopping cart is just about complete I've been working on the
rest of the order process.
I have got two pages before finally placing an order. The first page takes
address details and the next page prints them all out with the contents of
the shopping cart so the user
Hi all,
I had create a session and stored some value into
session.
?php
session();
session_register("id 123","name leooi");
?
How can i retrieved the value???
TQ
Leooi
hi!
well - this is not really a DB-question. and if you take a look at the
php-docu at http://www.php.net/manual/en/language.variables.predefined.php
you'd see that you can access and alter them with $_SESSION or
$HTTP_SESSION_VARS (older versions of php).
.ma
[EMAIL PROTECTED] [EMAIL
Also, you don't register values, you register variables.
$id = 123;
$name = leooi;
$_SESSION['id'] = $id; // same as session_register(id), but better
$_SESSION['name'] = $name; // same as session_register(name), but better
You could also skip the whole variable setting and just do this:
I am using session variables throughout an application, and every time I
try to log in as someone else after the first time I've logged in, it
uses the userid of the first person that logged in. I know the session
has to be destroyed or something, so I wanted to make a logoff page, but
it is not
on 4/6/03 10:39 PM, Alexa Kirk at [EMAIL PROTECTED] appended the following bits
to my mbox:
I am using session variables throughout an application, and every time I
try to log in as someone else after the first time I've logged in, it
uses the userid of the first person that logged in. I know
anyway if header(location) does not work, you can insert a small
hidden form into the login-checking page, and if login/password is correct,
just set body.onLoad event handler to HIDDENFORM.submit(); , where
HIDDENFORM is your small hidden form.
Ok. i know it is a weird way to solve your
Hi everyone,
Thanks for looking at my question!
Well, i just made a script that firstly check's up username and password
(log-in script) then next if the user enteret the correct information a
session is set like this:
session_id($sessid);
session_start();
Hi everyone,
Thanks for looking at my question!
Well, i just made a script that firstly check's up username and password
(log-in script) then next if the user enteret the correct information a
session is set like this:
session_id($sessid);
session_start();
George
-Original Message-
From: Lars Rasmussen [mailto:[EMAIL PROTECTED]
Sent: 12 March 2003 3:40 pm
To: [EMAIL PROTECTED]
Subject: [PHP-DB] session and header(location)
Hi everyone,
Thanks for looking at my question!
Well, i just made a script that firstly check's up username
I Have made two pages, sess2.php and sess3.php
trying to create a session variable then access it in the other page.
now when i try and call the session in the second page i get no value,
and i have tried var_dump, and it gives me NULL anyone know if there is a
reason for this?!
page 1 is
I am making a section on a web site which requires that visitors log-in.
Log-in, password, etc are in an MySQL table. I am using (via a web host) PHP
4.2.2 with global variables turned off. Until now, I have worked with a
different host in which global variables were switched on.
The way it works
[sorry for the incomplete posting of a couple moments ago. I hit ctl
something or other and outlook fired off the e-mail against my wishes!]
I am making a section on a web site which requires that visitors log-in.
Log-in, password, etc are in an MySQL table. I am using (via a web host) PHP
4.2.2
['verified'])) {
// push user back to login page
header('Location: http://mysite/index.php');
exit();
}
?
HTH
Rich
-Original Message-
From: Baumgartner Jeffrey [mailto:[EMAIL PROTECTED]]
Sent: 18 February 2003 11:20
To: '[EMAIL PROTECTED]'
Subject: [PHP-DB] Session
Try changing your code to
if ($_SESSION['verified'] != yes){
I think that's the problem
Nick
-Original Message-
From: Baumgartner Jeffrey [mailto:[EMAIL PROTECTED]]
Sent: 18 February 2003 11:20
To: '[EMAIL PROTECTED]'
Subject: [PHP-DB] Session variables when global variables
I have some confusing about my script, this is story
I have login page, and then the user got current page with various
menu, but when user click one of menu, its has error mesage, here my
script
[snip]
do I have mistake with my script, pls give me solution
thanks all for yr help
Dear all,
I have some confusing about my script, this is story
I have login page, and then the user got current page with various
menu, but when user click one of menu, its has error mesage, here my
script
html
p align = center
?
//require setup.php;
require common.php;
include setup.php;
Hello to everybody!!! I have a problem with the sessions
variable registration. I register a variable with the
$_SESSION[] array and set it to 1, but when I try to
access that variable in another script it is emty...
What's the problem there??
Thank you very much in advance!!!
1 - 100 of 160 matches
Mail list logo