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

[PHP-DB] Session and Access Privilages.

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

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

[PHP-DB] session expiration

2010-09-27 Thread Ron
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

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 (!

[PHP-DB] Session start

2010-05-14 Thread Barry Zimmerman
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'] !=

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

[PHP-DB] session management

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

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

[PHP-DB] Session Timeout question

2010-04-16 Thread Karl DeSaulniers
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.

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

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

2009-02-12 Thread Mika Jaaksi
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 other page that shows the picture "; ?

RE: [PHP-DB] session handling

2008-04-28 Thread Aaron
d. It would be extremely 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

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
-- Original Message ------ Received: Mon, 28 Apr 2008 10:06:19 AM CDT From: Nhadie Ramos <[EMAIL PROTECTED]> To: php-db@lists.php.net Subject: [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

[PHP-DB] session handling

2008-04-28 Thread Nhadie Ramos
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 cu

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

[PHP-DB] Session Problem

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

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

[PHP-DB] Session Variable from Recordset

2006-04-30 Thread JONATHAN GRAVOIS
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." --

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

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

2006-03-27 Thread Giacomo
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 w

[PHP-DB] Session handler - Info wanted

2005-12-08 Thread Craig Hoffman
Hi There, I'm going to write my own session handler for an upcoming project. I would like to store the session data in MySQL. I've never written one before; so if anyone has any tips, suggestions, in-sight, etc... please share. Thanks, Craig ___ Craig Hoffman www.ecl

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

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

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

2005-08-25 Thread bo
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 passw

[PHP-DB] session

2005-08-16 Thread Shahmat Dahlan
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

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
r 17, 2004 9:38 AM 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();

[PHP-DB] session

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

[PHP-DB] Session confusion

2004-10-06 Thread Stuart Felenstein
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

[PHP-DB] Session Objects, Dynamic Parameters

2004-10-04 Thread Joseph Crawford
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 (is_array($params)

[PHP-DB] session

2004-09-21 Thread balwantsingh
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

[PHP-DB] Session Cache Limiter

2004-09-16 Thread Ng Hwee Hwee
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 pr

[PHP-DB] Session Values Change

2004-07-27 Thread Jacob Hackamack
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 tri

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

[PHP-DB] Session

2004-04-26 Thread Ng Hwee Hwee
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 brow

[PHP-DB] session problem

2004-04-26 Thread Sukanto Kho
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 Nicho

[PHP-DB] session variables when accessing the same page

2003-10-11 Thread Andy Cantrell
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)) { generate_

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

[PHP-DB] SESSION SID Question

2003-08-28 Thread dpgirago
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 strin

[PHP-DB] SESSION SID Question

2003-08-28 Thread dpgirago
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 strin

[PHP-DB] Session help...

2003-07-29 Thread NIPP, SCOTT V (SBCSI)
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 attempti

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

[PHP-DB] Session Clean up?

2003-07-25 Thread Allens
Hello, 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 end of the

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

[PHP-DB] session problem

2003-07-23 Thread tana dsasa
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 fri

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

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

[PHP-DB] Session error?

2003-06-23 Thread Tim Winters
Ok, Tried playing with sessions (which is new to me) and didn't get very far. I have the following in my page and there is no other PHP in my page at all. The error I get is below, Can anyone help. If this is too OT for php-db let me know. Warning: session_start() [

RE: [PHP-DB] Session Question

2003-06-15 Thread Peter Monk
03 3:50 AM 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 p

[PHP-DB] Session Question

2003-06-14 Thread Boa Constructor
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

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

[PHP-DB] session

2003-06-05 Thread [EMAIL PROTECTED]
Hi all, I had create a session and stored some value into session. session(); session_register("id 123","name leooi"); ?> How can i retrieved the value???   TQ   Leooi   __

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

[PHP-DB] Session variables

2003-04-06 Thread Alexa Kirk
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 wo

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
HTH 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

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

2003-03-12 Thread Lars Rasmussen
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(); $_SESSION[

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

2003-03-12 Thread Lars Rasmussen
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(); $_SESSION[

[PHP-DB] Session troubles, could this be my isp's fault?

2003-02-25 Thread David Rice
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

  1   2   >