Re: [PHP-DB] Session and Access Privilages.

2012-03-29 Thread Vinay Kannan
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, Govinda

Re: [PHP-DB] Session and Access Privilages.

2012-03-29 Thread Govinda
> 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['

Re: [PHP-DB] Session and Access Privilages.

2012-03-29 Thread Trinath Somanchi
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

Re: [PHP-DB] session expiration

2010-09-28 Thread Richard Quadling
On 28 September 2010 03:06, Ron 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 problem i

Re: [PHP-DB] Session start

2010-05-14 Thread Dustin Simpson
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

Re: [PHP-DB] Session start

2010-05-14 Thread Artur Ejsmont
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, log

Re: [PHP-DB] Session start

2010-05-14 Thread Luiz Alberto
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");

Re: [PHP-DB] Session start

2010-05-14 Thread Peter Lind
On 14 May 2010 18:47, Barry Zimmerman 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: > > session_start(); > if (!

Re: [PHP-DB] session management

2010-04-23 Thread Jason Gerfen
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 r

Re: [PHP-DB] session management

2010-04-23 Thread Richard Quadling
On 22 April 2010 18:56, Vinay Kannan wrote: > 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 ?

Re: [PHP-DB] session management

2010-04-22 Thread Jason Gerfen
If you are worried about speed in regards to the server accessing session information then you will want to utilize the mcache service daemon as well as the php mcache libraries in your code. Session hijacking attacks on web applications involve utilizing known attack vectors such as the stati

Re: [PHP-DB] session management

2010-04-22 Thread Vinay Kannan
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, b

Re: [PHP-DB] session management

2010-04-22 Thread Jason Gerfen
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 requ

Re: [PHP-DB] Session Timeout question

2010-04-18 Thread Chris
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 s

Re: [PHP-DB] session variable in select query showing picture from database

2009-02-12 Thread Jason Pruim
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. s

RE: [PHP-DB] session handling

2008-04-28 Thread Aaron
1. Logging in only once is easy. Make the login page only appear if isset($_SESSION['accountcode']) Else, have it display a page saying you are already logged in. 2. SSL 3. If a session expires the user logs out and the session is destroyed. That's why it's called expiration. 4. session_destroy

Re: [PHP-DB] session handling

2008-04-28 Thread YVES SUCAET
>> 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 situa

Re: [PHP-DB] session handling

2008-04-28 Thread YVES SUCAET
Hi nhadie, 1. Unlike, ASP or ASP.NET, PHP only has a Session object, not an Application object. A session is only available to one single user only, and you can't share information between Sessions using PHP (you'd use the Application object for this in ASP(.NET)). While you can probably hack your

RE: [PHP-DB] Session Problem

2007-01-16 Thread Nur_Adman
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

Re: [PHP-DB] Session Problem

2007-01-16 Thread bob plano
, 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 PROTECTED]> >To: <[EMAI

RE: [PHP-DB] Session Problem

2007-01-12 Thread Nur_Adman
essage- From: Bastien Koert [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 coo

RE: [PHP-DB] Session Problem

2007-01-12 Thread Bastien Koert
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: Subject: RE: [PHP-DB] Session Problem Date: Fri, 12 Jan 2007 15:34:06 +0900 1. Did you mean that on phpinfo(),

RE: [PHP-DB] Session Problem

2007-01-11 Thread Nur_Adman
eter 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, recom

Re: [PHP-DB] Session Problem

2007-01-11 Thread Peter Beckman
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 user/group

Re: [PHP-DB] Session Variable from Recordset

2006-04-30 Thread Stut
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 ot

Re: [PHP-DB] Session don't store after header("Location: ...")

2006-03-27 Thread Philip Hallstrom
Philip Hallstrom ha scritto: Don't use Header("Location:..."). Instead spit back very minimal javascript that does something like: document.location.href = '.'; That way the cookies that get sent back in the header will take affect. I have to use header("Location..."), cause I'm using

Re: [PHP-DB] Session don't store after header("Location: ...")

2006-03-27 Thread Giacomo
Philip Hallstrom ha scritto: Don't use Header("Location:..."). Instead spit back very minimal javascript that does something like: document.location.href = '.'; That way the cookies that get sent back in the header will take affect. I have to use header("Location..."), cause I'm using

Re: [PHP-DB] Session don't store after header("Location: ...")

2006-03-27 Thread Philip Hallstrom
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 o

RE: [PHP-DB] Session handler - Info wanted

2005-12-08 Thread Bastien Koert
great article at www.phpbuilder.com http://phpbuilder.com/columns/ying2602.php3?aid=19 Bastien From: Craig Hoffman <[EMAIL PROTECTED]> To: php-db@lists.php.net Subject: [PHP-DB] Session handler - Info wanted Date: Thu, 8 Dec 2005 11:04:29 -0600 Hi There, I'm going to write my own session

RE: [PHP-DB] session confusion| can anyone help?

2005-08-26 Thread Bastien Koert
try defining the values as empty strings first... 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 contr

Re: [PHP-DB] session confusion| can anyone help?

2005-08-25 Thread RaJeSh VeNkAtA
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: Unde

Re: [PHP-DB] - Session in URL - wrong list

2005-03-16 Thread Mignon Hunter
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 r

Re: [PHP-DB] Session in URL

2005-03-16 Thread Mignon Hunter
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

Re: [PHP-DB] session

2004-10-17 Thread Brad Bonkoski
Wils" <[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

Re: [PHP-DB] session

2004-10-17 Thread H. J. Wils
D]> To: "H. J. 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

Re: [PHP-DB] session

2004-10-17 Thread Brad Bonkoski
I believe you need to pass the session variable along to the next page... Something like: On page 1: if session is set { $s = SID; echo "Link"; } - Original Message - From: "H. J. Wils" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, October 17, 2004 9:38 AM Subject: [PHP-D

Re: [PHP-DB] Session

2004-04-27 Thread Marcjon Louwersheimer
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, visit:

Re: [PHP-DB] Session

2004-04-27 Thread Daniel Clark
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 an

Re: [PHP-DB] Session

2004-04-27 Thread Sukanto Kho
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 mor

Re: [PHP-DB] Session

2004-04-27 Thread Torsten Roehr
> 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

Re: [PHP-DB] Session

2004-04-27 Thread John W. Holmes
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 soluti

Re: [PHP-DB] Session

2004-04-27 Thread Hans Lellelid
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 th

Re: [PHP-DB] Session

2004-04-27 Thread John W. Holmes
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

Re: [PHP-DB] Session

2004-04-27 Thread Torsten Roehr
- 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 seon

Re: [PHP-DB] Session

2004-04-27 Thread Ng Hwee Hwee
PEAR yet, but surely would like to learn 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] Sess

Re: [PHP-DB] Session

2004-04-27 Thread Torsten Roehr
AIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 27, 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

Re: [PHP-DB] Session

2004-04-27 Thread Ng Hwee Hwee
, April 27, 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 > > beca

Re: [PHP-DB] Session

2004-04-27 Thread Torsten Roehr
based on the garbage probablility. Take a look here: http://de3.php.net/session Look out for "session.gc_maxlifetime" and "session.gc_probability". Regards, Torsten > > - Original Message - > From: "Mikael Grön" <[EMAIL PROTECTED]> > To: "

Re: [PHP-DB] Session

2004-04-27 Thread Ng Hwee Hwee
riginal 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 has nothing to do with weak network connections. > I

Re: [PHP-DB] Session

2004-04-27 Thread Ng Hwee Hwee
done wrong?? - 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

Re: [PHP-DB] Session

2004-04-27 Thread Mikael Grön
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 27

Re: [PHP-DB] SESSION SID Question

2003-08-28 Thread CPT John W. Holmes
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

Re: [PHP-DB] Session Clean up?

2003-07-25 Thread CPT John W. Holmes
>A question on cleanup? > example: > 1. Connection via mysql_connect via the web. > 2. Know that mysql_connect relinquishes the connection link upon the > script ending. > 3. User performs work and has several global variables stored in memory > on the server. > 4. User doesn't logout at the en

RE: [PHP-DB] session problem

2003-07-23 Thread Dillon, John
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 with

RE: [PHP-DB] Session error?

2003-06-23 Thread Tim Winters
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-D

RE: [PHP-DB] Session error?

2003-06-23 Thread Mike Brum
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-D

RE: [PHP-DB] Session error?

2003-06-23 Thread Tim Winters
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? > Warn

Re: [PHP-DB] Session error?

2003-06-23 Thread CPT John W. Holmes
> Warning: 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 sess

RE: [PHP-DB] Session error?

2003-06-23 Thread Edward Peloke
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 error

RE: [PHP-DB] Session error?

2003-06-23 Thread Edward Peloke
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

RE: [PHP-DB] Session Question

2003-06-15 Thread Peter Monk
Graeme, What version of PHP? If you're using $HTTP_SESSION_VARS[] to store your variables (if 4.0.6 or earlier) or $_SESSION[] (if later) you shouldn't use session_register(). Peter. -Original Message- From: Boa Constructor [mailto:[EMAIL PROTECTED] Sent: Sunday, 15 June 2003 3:50 AM

Re: [PHP-DB] session

2003-06-05 Thread Peter Beckman
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: $

Re: [PHP-DB] session

2003-06-05 Thread heilo
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 PROTECTED

Re: [PHP-DB] Session variables

2003-04-06 Thread Paul Burney
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 kno

RE: [PHP-DB] session and header("location....")

2003-03-14 Thread P . Gertman
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

RE: [PHP-DB] session and header("location....")

2003-03-12 Thread George Pitcher
Lars, I'm not sure if this is related (possibly), but I has similar problems with cookies. I doiscovered that the cookie was only being set if the page that set it actually produced HTML. By redirecting, you cut out the HTML-writing. Why not redirect the user if the test fails instead. HTH Geo

RE: [PHP-DB] Session variables when global variables switched off [Sorry, firs t message accidentally fired off to quickly ]

2003-02-18 Thread Clarkson, Nick
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 switc

RE: [PHP-DB] Session variables when global variables switched off [Sorry, first message accidentally fired off to quickly ]

2003-02-18 Thread Rich Gray
Hi Jeff Don't use session_register() just use the $_SESSION superglobal as you would use any other array. So does this work? http://mysite/index.php'); exit(); } ?> HTH Rich > -Original Message- > From: Baumgartner Jeffrey [mailto:[EMAIL PROTECTED]] > Sent: 18 February 2003 11

RE: [PHP-DB] Session on PHP with MySQL

2003-01-10 Thread John W. Holmes
> 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 h

RE: [PHP-DB] Session variable problems

2003-01-05 Thread dufronte
I've received your file.. and check it.. I think you missed something... Try this one :D 1){ session_start(); if(!isset($_SESSION['s_prueba'])){ $_SESSION['s_prueba']=1; echo($_SESSION['s_prueba']); } ?>

RE: [PHP-DB] SESSION

2002-12-23 Thread John W. Holmes
> After collecting the input data from a FORM via an array (name=kgkeys) > the next function starts: > session_start(); > $_SESSION['g_numprimarykeys'] = $_POST['numprimarykeys']; //This always > works ok first time through > $_SESSION['g_kgkeys'] = $_POST['kgkeys']; //This always works ok first >

Re: [PHP-DB] Session questions

2002-11-27 Thread Marco Tabini
Here's a couple of suggestions: 1) You can use javascript to trap the window's closure and create a new window that simply calls one of your scripts that closes the session. This is not 100% foolproof, however, so you need to come up with a backup plan, like closing sessions automatically with a b

RE: [PHP-DB] Session questions

2002-11-27 Thread John W. Holmes
> I have a login system which uses sessions, and when people login it puts > the date they logged in in their profile and moves their last login date > over to another field, that works fine, but how can I check if someone has > logged out via code? In other words, if someone does what they want

Re: [PHP-DB] session in php 4.2.3

2002-11-12 Thread dn
Hi! Leif K-Brooks schrieb: My guess is a register_globals problem, but it's hard to tell without seeing your scripts. That did the trick! Thank you very much! I did not provide a path to php.ini so the setting was first not read! Now it works! Best regards Daniel -- PHP Database Mailing Li

Re: [PHP-DB] session in php 4.2.3

2002-11-12 Thread Leif K-Brooks
My guess is a register_globals problem, but it's hard to tell without seeing your scripts. dn wrote: Hi! I have to support a PHP-Database-solution which someone else has developed. In addition I'm quite new to php ... It uses Oracle 8 to display values out of the database. Everything is runnin

Re: [PHP-DB] session in php 4.2.3

2002-11-12 Thread dn
Hi! Jeffrey N Dyke schrieb: are you stating the session on on the other pages with session_start()? > Yes I do! Code comes along! "anmelden.php" does a successful db-login (db-logfile confirms that). "content.php" runs into: Warning: OCISessionBegin: ORA-01017: invalid username/password; logon

Re: [PHP-DB] session in php 4.2.3

2002-11-12 Thread Jeffrey_N_Dyke
are you stating the session on on the other pages with session_start()? what errors are you getting? if you check for session_is_registered ("user") on the other pages, what do you get? can you send some code along, its hard to see what the issue may be without it.

Re: [PHP-DB] session variables

2002-11-07 Thread Maxim Maletsky
"kevin myers" <[EMAIL PROTECTED]> wrote... : > I have a question: > I have a site, http://www.darkrpg.ionichost.com, and > htp://www.mail.ionichost.com. I'm trying to find a way of passing the > session varible from darkrpg to mail that way they need not log in again. > Is it possiable with

RE: [PHP-DB] Session variables and arrays

2002-10-30 Thread Peter Beckman
ttype():string > strlen():5 > > > -Original Message- > > From: Peter Beckman [mailto:beckman@;purplecow.com] > > Sent: Wednesday, October 30, 2002 8:57 AM > > To: Ryan Neudorf > > Cc: [EMAIL PROTECTED] > > Subject: RE: [PHP-DB] Session variables and arrays &

RE: [PHP-DB] Session variables and arrays

2002-10-30 Thread Ryan Neudorf
Here are the results: is_array(): gettype():string strlen():5 > -Original Message- > From: Peter Beckman [mailto:beckman@;purplecow.com] > Sent: Wednesday, October 30, 2002 8:57 AM > To: Ryan Neudorf > Cc: [EMAIL PROTECTED] > Subject: RE: [PHP-DB] Session variables and

RE: [PHP-DB] Session variables and arrays

2002-10-30 Thread Peter Beckman
nt strlen($_SESSION['categories']); If you get "5", then the variable might be a string with the contents being the word "Array". Pretty doubtful, but we're being thorough here. Peter > Hmph > > - Ryan > > > -Original Message----- >

RE: [PHP-DB] Session variables and arrays

2002-10-29 Thread Ryan Neudorf
October 29, 2002 9:59 PM > To: Ryan Neudorf > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP-DB] Session variables and arrays > > > Well, can't say I see the same problem: > > $_SESSION['foo'] = array("hi"=>"bye"); > > print_r($_SESSI

Re: [PHP-DB] Session variables and arrays

2002-10-29 Thread Peter Beckman
Well, can't say I see the same problem: "bye"); print_r($_SESSION['foo']); echo "\n\n"; print is_array($_SESSION['foo']); Outputs: X-Powered-By: PHP/4.2.2 Content-type: text/html Array ( [hi] => bye ) 1 Which is what I'd expect it to show. Now how did you assign categories? Maybe the var

RE: [PHP-DB] Session understanding

2002-09-26 Thread Ford, Mike [LSS]
> -Original Message- > From: Griffiths, Daniel [mailto:[EMAIL PROTECTED]] > Sent: 26 September 2002 16:09 > > as long as that same session code is present at the top of > all the included files that are put in later. basicaly you > need to put the session code in every page (even if yo

RE: [PHP-DB] Session understanding

2002-09-26 Thread Griffiths, Daniel
in the same way that you can read included .js and .css files. -Original Message- From: NIPP, SCOTT V (SBCSI) [mailto:[EMAIL PROTECTED]] Sent: 26 September 2002 15:57 To: Griffiths, Daniel; Steve Bradwell; Rodrigo; PHP Subject: RE: [PHP-DB] Session understanding Can't yo

RE: [PHP-DB] Session understanding

2002-09-26 Thread NIPP, SCOTT V (SBCSI)
ginal Message- From: Griffiths, Daniel [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 26, 2002 9:55 AM To: Steve Bradwell; Rodrigo; PHP Subject: RE: [PHP-DB] Session understanding make sure that the test code is in every page you wish to protect, even the included ones, if its not there so

RE: [PHP-DB] Session understanding

2002-09-26 Thread Griffiths, Daniel
e Bradwell [mailto:[EMAIL PROTECTED]] Sent: 26 September 2002 15:02 To: Rodrigo; PHP Subject: RE: [PHP-DB] Session understanding If you include the other page AFTER you do this check you'll be fine. So run your if statement and then add an else...include "other.php"; HTH, Stev

RE: [PHP-DB] Session understanding

2002-09-26 Thread Steve Bradwell
If you include the other page AFTER you do this check you'll be fine. So run your if statement and then add an else...include "other.php"; HTH, Steve. -Original Message- From: Rodrigo [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 26, 2002 9:38 AM To: PHP Subject: [PHP-DB] Session

RE: [PHP-DB] Session data not being deleted on browser close.

2002-07-08 Thread Beau Lebens
have you closed all browser windows? eg. if you open your browser, then spawn a new window (ctrl-n or similar) then do something with one of them which creates session vars, then close that window, then open a new one again, the session has probably remained active because the first window was st

Re: [PHP-DB] session variables across several pages

2002-05-15 Thread Terry Romine
huh.. seems to work, now. I do the following: session_start(); session_register("form_data"); if($doAction) { switch($doAction) { case "Save Information": // save data in cookies $HTTP_SESSION_VARS['form_data'] = array($name,$employer,$e

RE: [PHP-DB] session variables across several pages

2002-05-15 Thread matt stewart
N_VARS['sess_address']=$address; see if that makes any difference? -Original Message- From: Terry Romine [mailto:[EMAIL PROTECTED]] Sent: 15 May 2002 16:40 To: matt stewart Cc: [EMAIL PROTECTED] Subject: Re: [PHP-DB] session variables across several pages This is freaky.

Re: [PHP-DB] session variables across several pages

2002-05-15 Thread Terry Romine
This is freaky. If I change the I can see the e_address coming in correctly, but it gets changed back to old value -- by the session_register('e_address')?? should I have something along the line of if(!$e_address) register_session('e_address'); ??? On Wednesday, May 15, 2002, at 09:

Re: [PHP-DB] session variables across several pages

2002-05-15 Thread Terry Romine
I believe you.. I added $HTTP_SESSION_VARS['e_address'] = $e_address; in my process form code and it's still not updating the var. snippit from select_class.php where I have reference to $e_address: session_register("e_address"); ... switch($doAction) {

RE: [PHP-DB] session variables across several pages

2002-05-15 Thread matt stewart
You need to look up $HTTP_SESSION_VARS['name'] - that's how to change the variables when they are already set.. i think most people have this problem when they first use sessions! -Original Message- From: Terry Romine [mailto:[EMAIL PROTECTED]] Sent: 15 May 2002 15:49 To: [EMAIL PROT

Re: [PHP-DB] Session Problem, Please Help.....

2002-05-02 Thread szii
I believe it's because $CLIENTID is not set at ALL before you register it. (ie, isset($CLIENTID) would fail) Therefore it cannot register the variable...there's nothing for it to register or track. Try... $CLIENTID = ""; session_register("CLIENTID"); $CLIENTID="SOMEVALUE"; - Original Mes

Re: [PHP-DB] Session problem?

2002-04-06 Thread Jason Wong
On Sunday 07 April 2002 12:01, Jennifer Downey wrote: > Hi all, > > This code is working greate except for one minor bug. > > If I have 2 or 3 items at different prices buy.php is updating the points > of the user at the last priced item. > > In other words if > item 1 costs 1965 > item 2 costs 56

Re: [PHP-DB] Session confusion :-(

2002-02-18 Thread Yasuo Ohgaki
Read current manual page. If you still have problem, let me know what's the problem. http://www.php.net/manual/en/ref.session.php -- Yasuo Ohgaki -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] Session confusion :-(

2002-02-18 Thread Adam Royle
I presume that the session is not updating because PHP does not automatically overwrite session variables. You should use something like this: $category = $HTTP_GET_VARS["category"]; session_register("category"); Session register can be called more than once, and has no effect on current sess

RE: [PHP-DB] Session confusion :-(

2002-02-17 Thread Beau Lebens
are you always "refreshing" the session on each page dave? i am pretty sure you need to call session_start() on every page that you will be accessing the session-based variables. HTH beau // -Original Message- // From: Dave Carrera [mailto:[EMAIL PROTECTED]] // Sent: Saturday, 16 Febru

Re: [PHP-DB] Session End

2002-02-17 Thread Greg Donald
> I want to know if there is a way in PHP to sence that the visitor left the > site, I think the answer is in PHP-Sessions, but I don't know how, Any help > please?? Use cookies. http://www.php.net/manual/en/features.cookies.php --

  1   2   >