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

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,

Re: [PHP-DB] session expiration

2010-09-28 Thread Richard Quadling
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

[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

[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 start

2010-05-14 Thread Peter Lind
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:

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); } Best

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,

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

[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

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

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,

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

[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.

[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 ?php function

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.

[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

Re: [PHP-DB] session handling

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

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 situation.

RE: [PHP-DB] session handling

2008-04-28 Thread Aaron
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

Re: [PHP-DB] Session Problem

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

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 think that the problem

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

RE: [PHP-DB] Session Problem

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

[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

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

RE: [PHP-DB] Session Problem

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

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

[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

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

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

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

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

2005-08-26 Thread Bastien Koert
'] : $_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

[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

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:

[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

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

[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])) {

Re: [PHP-DB] session

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

Re: [PHP-DB] session

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

Re: [PHP-DB] session

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

[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

[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-17 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

[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

[PHP-DB] Session

2004-04-27 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

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

Re: [PHP-DB] Session

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

Re: [PHP-DB] Session

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

Re: [PHP-DB] Session

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

Re: [PHP-DB] Session

2004-04-27 Thread Ng Hwee Hwee
: [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

Re: [PHP-DB] Session

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

Re: [PHP-DB] Session

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

Re: [PHP-DB] Session

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

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 value,

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

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 meta

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 user

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

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 another

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,

[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

[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)) {

[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 string

[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 string

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 produces an

[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

[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

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

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 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 CPT John W. Holmes
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

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? Warning

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-DB] Session

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-DB] Session

RE: [PHP-DB] Session Question

2003-06-15 Thread Peter Monk
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

[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

[PHP-DB] session

2003-06-05 Thread [EMAIL PROTECTED]
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

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

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:

[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

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 know

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

[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();

[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();

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

2003-03-12 Thread George Pitcher
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

[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 is

[PHP-DB] Session variables when global variables switched off

2003-02-18 Thread Baumgartner Jeffrey
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

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

2003-02-18 Thread Baumgartner Jeffrey
[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

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

2003-02-18 Thread Rich Gray
['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

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

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 help

[PHP-DB] Session on PHP with MySQL

2003-01-10 Thread Afif
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;

[PHP-DB] Session variable problems

2003-01-05 Thread Sabina Alejandr Schneider
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   2   >