[PHP] Re: Sessions VS MySQL

2007-05-30 Thread Darren Whitlen
Matt Fielding wrote: I've recently begun work on a web-based RPG game with some friends, and have recently been thinking about the best solution for loading and saving persistent variables like player life/stats and other information. I am both familiar with sessions and mysql for saving and

[PHP] Re: sessions vs domain problem

2006-12-22 Thread Colin Guthrie
Reinhart Viane wrote: I have the folowing problem : Hosting of my site is at http://www.groep6049.ksjnet.be http://www.groep6049.ksjnet.be/ My domainname is www.ksachiropoelkapelle.be http://www.ksachiropoelkapelle.be/ I have forwarded www.ksachiropoelkapelle.be

RE: [PHP] Re: sessions vs domain problem

2006-12-22 Thread Reinhart Viane
Something like: ?php session_set_cookie_params(0, '/', 'ksachiropoelkapelle.be'); session_start(); ... I inserted this code at the top: session_set_cookie_params(0, '/', '.ksachiropoelkapelle.be'); It did not solve the problem, still after logging in on www.ksachiropoelkapelle.be the session

[PHP] Re: Sessions Issue

2005-08-02 Thread kalinga
did you check the output of phpinfo()? if you did not made modifications or manual configurations, the session support should be on in defalt. ~viraj. On 8/1/05, Burhan Khalid [EMAIL PROTECTED] wrote: On Jul 29, 2005, at 8:07 PM, Tom Ray [Lists] wrote: We built a box about 7 months or

[PHP] Re: Sessions - going back in browser

2005-04-19 Thread Matthew Weier O'Phinney
* Craig Donnelly [EMAIL PROTECTED]: I had an issue that I needed to be able to go back in the browser while in a session without getting page has expired, I was reading through the manual and came across a comment about adding the following to the sessions page to allow users to traverse back:

[PHP] Re: sessions not being stored

2005-04-07 Thread Jason Barnett
Change permissions for /tmp/sess. The PHP user needs read and write perms for this directory. PHP user might also need execute perms for /tmp. -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup.com/?l=php-generalw=2 STFM |

[PHP] Re: Sessions

2005-03-07 Thread Jason Barnett
Db wrote: Hi all I'm writing a C++ CGI lib and I want to support php(5) sessions. Is there some API I should use or can I just create/delete/read/write the sess_ files in /tmp? You are probably best off searching the PHP source for session_set_save_handler. It will be something like

Re: [PHP] Re: Sessions

2005-03-07 Thread db
On Monday 07 March 2005 21:36, Jason Barnett wrote: You are probably best off searching the PHP source for session_set_save_handler. It will be something like PHP_FUNCTION('session_set_save_handler', ... ) Found it and some other functions in php-5.0.3/ext/session/session.c I could however

[PHP] Re: Sessions in Frames...confused

2004-12-06 Thread Peter Lauri
Do not use frames :) It creates problems for the searchengines. /Peter Ryan A [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] Hi, Reading the different articles on phpbuilder/devshed/phpfreaks etc has left me a bit confused.. will start from the beginning so you guys(and girls)

[PHP] Re: Sessions and subdomains issues

2004-12-06 Thread Peter Lauri
I had a similar problem before. I had my admin at admin.mydomain.com, and the cookies did not transfer. I changed it to www.mydomain.com/admin instead... In my host my subdomain admin.mydomain.com is located in www.mydomain.com/admin, I assume similar structure for you? /Peter Nick Wilson

[PHP] Re: Sessions: Basic Information

2004-12-03 Thread Lordo
Thanks alot. Lordo Peter Lauri [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Sessions will make you life easier if you are using cookies to control a web session. http://th.php.net/manual/en/ref.session.php will give you most information regarding this, together with some

[PHP] Re: Sessions: Basic Information

2004-12-02 Thread Peter Lauri
Sessions will make you life easier if you are using cookies to control a web session. http://th.php.net/manual/en/ref.session.php will give you most information regarding this, together with some examples. Play around with simple own examples and you will learn to work with sessions relativly

[PHP] Re: Sessions problem bug

2004-10-27 Thread Jason Barnett
Are you using cookie-based sessions? Thus sayeth the manual: Note: When using session cookies, specifying an id for session_id() will always send a new cookie when session_start() is called, regardless if the current session id is identical to the one being set. Thanks google. Reinhart Viane

RE: [PHP] Re: Sessions problem bug

2004-10-27 Thread Reinhart Viane
: woensdag 27 oktober 2004 11:41 To: [EMAIL PROTECTED] Subject: [PHP] Re: Sessions problem bug Are you using cookie-based sessions? Thus sayeth the manual: Note: When using session cookies, specifying an id for session_id() will always send a new cookie when session_start() is called, regardless

[PHP] Re: Sessions and Mozilla (Firefox)

2004-10-12 Thread Matthew Weier O'Phinney
* Pablo Gosse [EMAIL PROTECTED]: I just noticed that if I open up a Mozilla window, log into my CMS, then open another Mozilla window (not by ctrl-n, but by selecting it from my programs menu) and bring up the login page in that new window, then it detects the session from the other window and

Re: [PHP] Re: Sessions and Mozilla (Firefox)

2004-10-12 Thread Robby Russell
On Wed, 2004-10-13 at 01:26 +, Matthew Weier O'Phinney wrote: * Pablo Gosse [EMAIL PROTECTED]: I just noticed that if I open up a Mozilla window, log into my CMS, then open another Mozilla window (not by ctrl-n, but by selecting it from my programs menu) and bring up the login page in

[PHP] Re: Sessions not destroyed

2004-10-08 Thread M. Sokolewicz
are you using the default PHP sessions? or are you using a custom session handler? Hendrik Schmieder wrote: Hello, we have a severe problem with seesions. We use Apache 1.3.31 with PHP 4.3.9 as Apache module in Windows 2000 In our php.ini we have session.gc_probability = 100 session.gc_dividend

Re: [PHP] Re: Sessions not destroyed

2004-10-08 Thread Hendrik Schmieder
M. Sokolewicz schrieb: are you using the default PHP sessions? or are you using a custom session handler? Hendrik Schmieder wrote: Hello, we have a severe problem with seesions. We use Apache 1.3.31 with PHP 4.3.9 as Apache module in Windows 2000 In our php.ini we have session.gc_probability =

[PHP] Re: Sessions not destroyed

2004-10-08 Thread Hendrik Schmieder
Patrick Blousson schrieb: Hi, What about your hard disk partitions? Sessions only works on NTFS partitions. FAT don 't have a last accessed flag on file. Patrick. - Original Message - From: Hendrik Schmieder [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Friday,

[PHP] Re: Sessions and Logins

2004-09-03 Thread Torsten Roehr
Hi Dennis, see below Dennis Gearon [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Please CC me - I am designing my own 'usr' class that takes care of logins. I need to know the following to finish it. ---

[PHP] Re: Sessions session_start() my problem

2004-08-27 Thread Jasper Howard
that was a bit confusing, but it looks like you call session_start() more than once in a script. You only need to call it once, and you need to call it before any headers get sent, at the top of the script is a good place. If you're scripts are already setup like that just ignore me. Oh, also, if

Re: [PHP] Re: Sessions session_start() my problem

2004-08-27 Thread Pahlevanzadeh Mohsen
I have deleted session_start() at login.php Thus i have 1 session_start() But i receive them yet. Yours,Mohsen --- Jasper Howard [EMAIL PROTECTED] wrote: that was a bit confusing, but it looks like you call session_start() more than once in a script. You only need to call it once, and you

Re: [PHP] Re: Sessions session_start() my problem

2004-08-27 Thread Jasper Howard
is this php script at the top of the page, there is nothing before it? -- -- Jasper Howard :: Database Administration Velocity7 1.530.470.9292 http://www.Velocity7.com/ --

[PHP] Re: Sessions nightmare continue...

2004-08-17 Thread Craig Donnelly
Why are you testing if $_POST['submit'] is set are you posting something to the page?? In the two scripts you posted the code block wont be executed because there is no post variable being set. Try this: a1.php == ?php session_start();

[PHP] Re: Sessions nightmare continue...SOLVED

2004-08-17 Thread Angelo Zanetti
Thanks to all that responded, I have finally found the problem: When I installed PHP again, I kept on modifying the PHP.ini in the WINNT directory (as specified in the manual) but the PHP.ini that was being looked up was the 1 in the c:\php directory so I kept on trying all new things and nothing

[PHP] Re: sessions not working when page redirects

2004-08-10 Thread pete M
u need to start the session at the top of each page sesion_start(); Angelo Zanetti wrote: Hi all, Im having a slightly weird problem with my session variables. when on a certain page call it A, I register a session variable and assign it a value. I then test if it is registered successfully and

[PHP] Re: sessions not working when page redirects

2004-08-10 Thread Angelo Zanetti
I do do that on all pages... pete M [EMAIL PROTECTED] 8/10/2004 2:15:21 PM u need to start the session at the top of each page sesion_start(); Angelo Zanetti wrote: Hi all, Im having a slightly weird problem with my session variables. when on a certain page call it A, I register a

[PHP] Re: Sessions Problem !!

2004-08-06 Thread Chris Martin
Dre wrote: the exact error messages are == Warning: session_start(): open(/tmp\sess_000c30790862f64268e755546b6fcbb2, O_RDWR) failed: No such file or directory (2) in C:\Program Files\Apache

Re: [PHP] Re: Sessions Problem !!

2004-08-06 Thread Kevin Waterson
This one time, at band camp, Chris Martin [EMAIL PROTECTED] wrote: Warning: session_start(): Cannot send session cookie - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\maillist\maillist\admin.php:1) in C:\Program Files\Apache

[PHP] Re: Sessions Problem !!

2004-08-06 Thread Dre
Thanks Chris ... problem solved, I'm sorry but these configuration details is a bit new for me Originally I'm a C++ programmer and web development is not my major kind of work Thanks again Chris Martin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Dre wrote: the exact error

[PHP] Re: Sessions Problem !!

2004-08-06 Thread Chris Martin
Dre wrote: Thanks Chris ... problem solved, I'm sorry but these configuration details is a bit new for me Originally I'm a C++ programmer and web development is not my major kind of work Thanks again Good. I think that little tidbit was actually left out of the windows install notes, but I

[PHP] Re: sessions handling

2004-06-09 Thread Fred
Dmitry Ruban wrote: Hi folks, We have two instances of apache/mod_php running on 80 and 443 ports accordingly. For both mod_php we have the same dir (/tmp) to store session information. Is it possible to mix sessions data up if user switches between 80 and 443 ports? I mean what if when user surfs

Re: [PHP] Re: sessions

2004-05-24 Thread Michael R. Wayne
On Sun, May 23, 2004 at 09:00:41PM +0200, Maarten Weyn wrote: It worked for 5 minutes after a reboot, but now i get the same problem what happens is that on every session_start(); a new sessid is created how comes it doesn't use the old one I am starting to believe that session support is

[PHP] Re: sessions

2004-05-23 Thread Maarten Weyn
it works back after a reboot but does anybody know how it could have happened? Maarten Weyn [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, All my session_start() calls were working fine. But since yesterday the vars i use does not keep there value i use

[PHP] Re: sessions

2004-05-23 Thread Maarten Weyn
It worked for 5 minutes after a reboot, but now i get the same problem what happens is that on every session_start(); a new sessid is created how comes it doesn't use the old one Maarten Weyn [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, All my session_start() calls were

[PHP] Re: sessions

2004-05-23 Thread Torsten Roehr
Maarten Weyn [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] It worked for 5 minutes after a reboot, but now i get the same problem what happens is that on every session_start(); a new sessid is created how comes it doesn't use the old one Haven't followed this thread yet. Are you

[PHP] Re: Sessions still do not persist

2004-05-21 Thread Torsten Roehr
Michael R. Wayne [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I've posted several times mentioning that I am completely unable to cause sessions to persist. Over the intervening time, I have replicated this problem to a different machine, with the same results. Here's a recap

Re: [PHP] Re: Sessions still do not persist

2004-05-21 Thread Michael R. Wayne
On Fri, May 21, 2004 at 08:04:00PM +0200, Torsten Roehr wrote: As far as I remember session.use_trans_sid does NOT work with forms (action attribute). Have you tried appending it manually to the action?: Well, this certainly seems to be progress in the correct direction. So

Re: [PHP] Re: Sessions still do not persist

2004-05-21 Thread Torsten Roehr
Michael R. Wayne [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Fri, May 21, 2004 at 08:04:00PM +0200, Torsten Roehr wrote: As far as I remember session.use_trans_sid does NOT work with forms (action attribute). Have you tried appending it manually to the action?: Well,

Re: [PHP] Re: Sessions still do not persist

2004-05-21 Thread Michael R. Wayne
On Fri, May 21, 2004 at 08:35:37PM +0200, Torsten Roehr wrote: Sorry, I'm an idiot! The ? was missing: form method=post action=xxx.php??= SID; ? Thank you, thank you. This does indeed seem to work in my test script. Now to go work on the real version. This should work. As far as I have

Re: [PHP] Re: Sessions still do not persist

2004-05-21 Thread Michael R. Wayne
On Fri, May 21, 2004 at 08:35:37PM +0200, Torsten Roehr wrote: Sorry, I'm an idiot! The ? was missing: form method=post action=xxx.php??= SID; ? Well, I spoke too soon. It does work, but only the SECOND time the script is run! Stage:0 SessionID: 6c9a1819fe95fa6f08f385ee2afa71ca

Re: [PHP] Re: Sessions still do not persist

2004-05-21 Thread Torsten Roehr
Michael R. Wayne [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Fri, May 21, 2004 at 08:35:37PM +0200, Torsten Roehr wrote: Sorry, I'm an idiot! The ? was missing: form method=post action=xxx.php??= SID; ? Well, I spoke too soon. It does work, but only the SECOND time the

Re: [PHP] Re: Sessions still do not persist

2004-05-21 Thread Michael R. Wayne
On Fri, May 21, 2004 at 09:12:02PM +0200, Torsten Roehr wrote: So, what am I missing here? You could try it without session.auto_start. Turn it off and put session_start() at the top of the script (in all pages). Tried that - makes no difference. Still works properly on the second call

[PHP] Re: sessions pls help

2004-05-19 Thread \[php\]Walter
Take a look at PEAR:Auth Walter Robi [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, I need some info about sessions in php, to clarify my knowledge and usage. So lets imagine that I am building a web site where I can log in and log off, it is without db. How do I use

[PHP] Re: sessions pls help

2004-05-17 Thread Kim Steinhaug
Well, What you need to do is start all pages with the session_start(); variable, like this : ?php session_start(); ? This would make you ready for handling logins and such further down the page. What you also need to do is two things, 1. Create a login which registers a new session. 2. Create a

[PHP] Re: Sessions and PHP

2004-03-31 Thread pete M
THis does the same http://0x00.org/php/phpApplication/ pete Patrik Fomin wrote: Hi,, is there anyway to get the number of people connected to the site? in asp you just use Application and session_terminate to accomplish this is there anyway to do this in PHP ? regards patrick -- PHP General

[PHP] Re: Sessions, sessions and... sessions

2004-03-02 Thread Pance
Hi Puiu, I've been having the same problem too. My code that worked up until recently just stopped working. I did change from using: session_register(user_id); if (!(user_id)){ to using: session_start(); if (!$_SESSION['user_id']){ Now it works with my

[PHP] Re: Sessions, sessions and... sessions

2004-03-02 Thread Pance
Hi Puiu, I've been having the same problem too. My code that worked up until recently just stopped working. I did change from using: session_register(user_id); if (!(user_id)){ to using: session_start(); if (!$_SESSION['user_id']){ Now it works with my

[PHP] Re: Sessions, sessions and... sessions

2004-03-02 Thread Puiu Hrenciuc
I don't use session_register(), just the $_SESSION global variable, so this is not it... :( Pance [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi Puiu, I've been having the same problem too. My code that worked up until recently just stopped working. I did change from using:

Re: [PHP] Re: Sessions, sessions and... sessions

2004-03-02 Thread Daniel Clark
I believe the PHP.INI has to be set with a Session variable temp directory. Hi Puiu, I've been having the same problem too. My code that worked up until recently just stopped working. I did change from using: session_register(user_id); if (!(user_id)){ to using:

Re: [PHP] Re: Sessions, sessions and... sessions

2004-03-02 Thread Daniel Clark
session.save_path string session.save_path defines the argument which is passed to the save handler. If you choose the default files handler, this is the path where the files are created. Defaults to /tmp. If session.save_path's path depth is more than 2, garbage collection will not be

[PHP] Re: Sessions, sessions and... sessions

2004-03-02 Thread Puiu Hrenciuc
I have make a workaround for my problem using MySQL for session storage and not using the PHP generated SIDs, but using some SID generated with something like this : $tsid=$_SERVER['HTTP_USER_AGENT'].'|'.$_SERVER['REMOTE_ADDR'].'|'; $tsid=md5(md5($tsid)); session_id($tsid);

[PHP] Re: Sessions

2004-02-17 Thread Paul Furman
[EMAIL PROTECTED] wrote: Have a questions about sessions. In building a simple app do I have to include the session id in the url string or in a hidden tag? or does it normally track it by cookies and so I dont have to call it on every page? thoughts on best way to do this I'm trying to

RE: [PHP] Re: Sessions

2004-02-17 Thread Chris W. Parker
Paul Furman mailto:[EMAIL PROTECTED] on Tuesday, February 17, 2004 10:39 AM said: Have a questions about sessions. In building a simple app do I have to include the session id in the url string or in a hidden tag? or does it normally track it by cookies and so I dont have to call it on

[PHP] Re: Sessions on Win2k

2004-02-11 Thread memoimyself
Hello Don, On 11 Feb 2004 at 11:19, Donpro wrote: I've searched the archives and note that many have probelms using session on a Win2K server. I am getting a Undefined index: sessions in D:\inetpub\mydomain\www\forms\formmail\formmail.php on line 768 error. Line 768 is:

[PHP] Re: Sessions not working.

2004-02-01 Thread The.Rock
If your on IIS, you need to set the session.save_path option in php.ini file. Then make sure that IIS can actually write to the directory. Jeff McKeon [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Pulling my hair out here. I've got an IIS5 webserver running a php website just fine.

[PHP] Re: Sessions

2003-10-07 Thread Paul van Schayck
Hello, [EMAIL PROTECTED] (Webmaster) wrote Now I am getting such lines in the address bar: /pages/news.php?option=1015PHPSESSID=PHPSESSID=d117dba208d4b205cd4e521 f606b b44e#result Do you set them manual, does the server auto start a session? What are the settings for session in your ino

[PHP] Re: Sessions and frames

2003-08-27 Thread Jean-Christian IMbeault
A little update, seems I was wrong about the session cookie being set when the page is first access. The first time the page is accessed no session cookie or /tmp file is generated. I think this may be because the site that is loading my content in a frame is also generating a cookie. Is that a

[PHP] Re: Sessions and frames

2003-08-27 Thread Jean-Christian IMbeault
After much head banging I found the answer. I had set my browser to only allow cookies from the originating site to be set. (This prevent banner ads from setting cookies). Of course the first time my frame was loaded the browser was seeing it as content not from the originating site and hence

Re: [PHP] Re: Sessions and frames

2003-08-27 Thread Marek Kilimajer
It has nothing to do with the other site. Browser makes a separate request for the frame content and you can set cookies without any problem. You should check if the cookie is realy set and if the cookie parameters are right (eg. in Mozilla's cookie manager). Jean-Christian IMbeault wrote: A

[PHP] Re: Sessions

2003-07-09 Thread Dave Alger
Thanks to all who posted. Well, I managed to track down the problem. The PHP system was set to use /tmp for its session.save_path but there was no /tmp directiory. Strange because on my test site I don't have a /tmp directory... I'm guessing my ISP has taken care of that separately. Anyway I

[PHP] Re: sessions and browser back

2003-06-27 Thread chris
On Wed, 25 Jun 2003 18:56:13 +0530, Bibhas Kumar Samanta [EMAIL PROTECTED] wrote: Hi, I am trying to create restricted pages for my php/mysql/apache server with sessions and passing session varibales to other pages for validation. Eventually I am doinng session_start() at the begining and

Re: [PHP] Re: sessions and browser back

2003-06-27 Thread Chris Sherwood
the back link as a hyperlink which allows me to add the info to the form when returned so it looks like the form hasnt lost its information. - Original Message - From: chris [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 27, 2003 11:22 AM Subject: [PHP] Re: sessions and browser

[PHP] Re: Sessions problem

2003-06-10 Thread Cristian MARIN
It's a bit large the concept not working. The code seems OK but I can't tested or help you because I can't see what it should do. If I register the my_email by hand it will enter to the do_session_crap() ... if not I don't get anything. When you are registering the my_email and how do you get

[PHP] Re: sessions and domains

2003-05-30 Thread George Whiffen
Bk wrote: Hi I've to set up a shared shopping cart to buy items from four different sites and pay them at once passing trough a single checkout. Provided that these sites are hosted on the same server (actually in the same directory), but have different names, is it possible to share php

[PHP] Re: Sessions problem

2003-03-10 Thread Dan Phiffer
I believe there's a domain limitation inherent to the way cookies work (assuming a cookies-based sessions setup), but there may be some way of circumventing that (can't some ad banner companies track visitors from site to site?). Seems like a multi-file search and replace should do the trick. If

[PHP] Re: sessions terminating randomly please help

2003-03-10 Thread David Chamberlin
It's possible you're being afflicted with the same problem I am. See the message just one or two above this about Sessions problem. What I found in my debugging is that it had to do with how I was mix-and-matching the way I specified links. Short version of the problem is that

RE: [PHP] Re: sessions terminating randomly please help

2003-03-10 Thread Dennis Cole
]; Freaky Deaky Cc: [EMAIL PROTECTED] Subject: [PHP] Re: sessions terminating randomly please help Importance: Low It's possible you're being afflicted with the same problem I am. See the message just one or two above this about Sessions problem. What I found in my debugging is that it had to do

Re: [PHP] Re: sessions terminating randomly please help

2003-03-10 Thread Justin French
Check if your server is using files or shared memory to save the sessions... My ISP was using mm (memory), and it was buggy... when they changed back to files, all was well. Justin on 11/03/03 7:40 AM, David Chamberlin ([EMAIL PROTECTED]) wrote: It's possible you're being afflicted with the

[PHP] Re: Sessions are acting strangely

2002-10-28 Thread Joel Boonstra
Hi there, Im looking for ANY help regarding his problem - I find this interesting to say the least. I recently switched to a new hosting company - they are running php 4.1.2 - register globals is ON. the sessions automatically expire without closing the window. if you load index.php and

[PHP] Re: Sessions

2002-10-05 Thread nicos
Do you use globals on or off ? -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet Steve Vernon [EMAIL PROTECTED] a écrit dans le message de news: 056a01c26cb2$509f2260$[EMAIL PROTECTED] Hiya, Just upgraded to 4.2.3 and I am using the attatched

[PHP] Re: Sessions

2002-10-05 Thread Jeff Bluemel
instead of using the session_register try $_SESSTION[' ssun'] Steve Vernon [EMAIL PROTECTED] wrote in message 056a01c26cb2$509f2260$a5e387d9@extreme">news:056a01c26cb2$509f2260$a5e387d9@extreme... Hiya, Just upgraded to 4.2.3 and I am using the attatched PHP.ini file. I use sessions on

Re: [PHP] Re: Sessions

2002-10-05 Thread Justin French
To clarify, and correct a few typos: Instead of: $ssun = foo; session_register(ssun); Try: $_SESSION['ssun'] = foo; HTH Justin on 06/10/02 12:11 PM, Jeff Bluemel ([EMAIL PROTECTED]) wrote: instead of using the session_register try $_SESSTION[' ssun'] Steve Vernon [EMAIL PROTECTED]

[PHP] Re: sessions nightmare

2002-09-11 Thread lallous
I use JavaScript cookie to accomplish what you're doing in your case: script function setCookie(name, value, expires, path, domain, secure) { var curCookie = name + = + escape(value) + ((expires) ? ; expires= + expires.toGMTString() : ) + ((path) ? ; path= + path : ) +

[PHP] Re: sessions nightmare

2002-09-11 Thread Erwin
I want to be able to have a user login (which is completed), they goto a search page (completed), and search for a particular item (completed). A page will display all the links for the items searched for (completed). What I want out of sessions is to when they click on the link for a

[PHP] Re: sessions nightmare

2002-09-11 Thread Philippe Saladin
Your variable in session is called Item, so session_register(SESSION) is wrong. It should be session_register(Item). But, as you use directly the new syntax ($_SESSION) to affect the variable, you don't need session_register. The variable Item will be automatically registered when you write

[PHP] Re: sessions?

2002-08-27 Thread CHAILLAN Nicolas
Mark Faine [EMAIL PROTECTED] a écrit dans le message de news: 8ioeq3$kg2$[EMAIL PROTECTED] Linux Mandrake 7.1 Apache/PHP4 I'm trying to implement this mysql session scheme as describe here: http://phpbuilder.com/columns/ying2602.php3 A.) my sessions are not being saved into the

[PHP] RE: sessions don't work

2002-08-16 Thread Tim Ward
why do you think the session isn't working? If there is a run time error in 'file' then an error would be reported and the output terminated. If you have error reporting off then you would expect to get eactly what you see. Sounds like a problem inside 'file'. Tim Ward St Ives

[PHP] Re: sessions don't work

2002-08-16 Thread Ryan
May be the session is diable in the php.ini Félix garcía renedo wrote: Hello, I have a problem with php sessions. I have a php file like: ? session_start(); session_register('pagina'); ? html head ... /head body ? include('file'); ? ... /html I have done diferent

[PHP] Re: sessions: what to do when browser won't accept cookies?

2002-08-16 Thread Jerry
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Jean-Christian Imbeault) wrote: How can I get around the problem of not having the SID in the URL of the first page to my site the user comes to? It kind of a chicken-or-the-egg problem ... I kind of hate it when sites do this, but you could

RE: [PHP] Re: sessions: what to do when browser won't accept cookies?

2002-08-16 Thread SHEETS,JASON (Non-HP-Boise,ex1)
or they use old browsers that don't support the functionality you are using. Jason -Original Message- From: Jerry [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 10:20 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: sessions: what to do when browser won't accept cookies? In article

[PHP] Re: sessions: what to do when browser won't accept cookies?

2002-08-16 Thread Jean-Christian Imbeault
Jerry wrote: I kind of hate it when sites do this, but you could have the first page reload itself if it doesn't have an SID, and add an SID to itself. This way, if they use the back button, the first first page they come to has the SID. But if they it the back button again they would

[PHP] Re: Sessions...

2002-08-15 Thread Carsten Mohr
As far as I know, you're right, that the session is destroyed Kondwani Spike Mkandawire wrote: Am I mistaken to assume that a Session is automatically destroyed if a Window Browser is closed? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Re: Sessions...

2002-08-15 Thread Johnson, Kirk
Kondwani Spike Mkandawire wrote: Am I mistaken to assume that a Session is automatically destroyed if a Window Browser is closed? *Eventually* it is destroyed, but not at the instant the browser is closed. See the session.gc_maxlifetime and session.gc_probability settings in php.ini. If the

[PHP] Re: sessions and https

2002-07-29 Thread Richard Lynch
Do sessions not work when using an https connection? It seems I'm losing my data between pages. You will need to pass the Session ID from page to page any time the user crosses the HTTP/HTTPS boundary. Actually, once you pass it, it will stick around on both, but you may want to be sure and

Re: [PHP] Re: sessions and https

2002-07-29 Thread Chris Shiflett
Richard Lynch wrote: But Cookies sent to the HTTPS are not on the HTTP and vice versa. That ain't PHP, that's just how cookies work. Are you sure about this? That's definitely not how the specification reads (assuming I'm interpreting what you're trying to say correctly), and that is not

Re: [PHP] Re: sessions

2002-07-26 Thread Tyler Durdin
So doing it the new way ($_SESSION['variable']) how do you close or unregister a session? _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Re: sessions

2002-07-26 Thread Tyler Durdin
Still the same message. It has been actually logging me out all along, but it will not run through that if statement. Could you trye if (!empty($HTTP_SESSION_VARS['valid_user']) use $HTTP_SESSION_VARS _ Chat with friends

Re: [PHP] Re: sessions

2002-07-26 Thread Tyler Durdin
Still getting the same message. This script used to work perfectly in an older version of php. Could it be a problem with how I am setting the sessions. Has anything changed with how we code sessions? It's because you are unregistering the valid_user variable, but, the old_user var you

[PHP] Re: Sessions, how they exist and die

2002-07-26 Thread Richard Lynch
My question is, if I have a user on my web site, and they leave and come back does their session still exist? the file in the /tmp folder exists until it is deleted by the OS? If the user comes back will they get assigned the same session they had before? I know the questions are pretty newbish

Re: [PHP] Re: sessions

2002-07-26 Thread Andrey Hristov
unset($_SESSION['variavble']); Andrey - Original Message - From: Tyler Durdin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 26, 2002 10:14 PM Subject: Re: [PHP] Re: sessions So doing it the new way ($_SESSION['variable']) how do you close or unregister a session

Re: [PHP] Re: sessions

2002-07-26 Thread Andrey Hristov
: Re: [PHP] Re: sessions Still the same message. It has been actually logging me out all along, but it will not run through that if statement. Could you trye if (!empty($HTTP_SESSION_VARS['valid_user']) use $HTTP_SESSION_VARS

[PHP] Re: Sessions don't work?

2002-07-25 Thread Lord Loh.
From the PHP docs... = ?php session_register (count); $count++; ? Hello visitor, you have seen this page ?php echo $count; ? times.p; ?php # the ?=SID? is necessary to preserve the session id # in the case that the user has disabled cookies ? To continue, A

[PHP] Re: Sessions : overriding variable values

2002-07-25 Thread Scott Fletcher
1) session_start() is not really required on any other pages beside the index.php because session_register take care of that for you. 2) It should work when you try session_register() on the index.php, use a makeup name, like session_register(user) then assign the data to it, like

[PHP] Re: Sessions don't work?

2002-07-24 Thread Alexander Deruwe
I'd like to post a follow-up to my previous message on this subject. Please still CC me when replying, thanks. New test code: ?php session_start(); if (!isset($HTTP_SESSION_VARS['counter'])) { $HTTP_SESSION_VARS['counter'] = 1; } else { $HTTP_SESSION_VARS['counter']++; } if

[PHP] Re: Sessions don't work?

2002-07-24 Thread Mike Mannakee
Your problem is very simple. You're beginning a new session every execution, without checking if a session is already going. So every time it comes back around it's looking for the variables in the current session, which every time just began. Check for an existing session first like:

[PHP] Re: sessions

2002-07-23 Thread Jas
You forgot the session_start(); call. You will have to do that before you can tap into registered vars. Hope that helps. Jas Alexander Ross [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'm trying to understand sessions so I can set session variables. I set

[PHP] Re: Sessions vs passing variables

2002-07-21 Thread Chris Earle
What do you mean by pass? Using a GET method, POST, COOKIE or are you trying to do something else (other than SESSION)? Mike Mannakee [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... When I try to pass a variable from one page to another the variable is

[PHP] Re: Sessions Vars under 4.0.4pl1

2002-07-18 Thread Richard Lynch
Hello All, I, having problems getting HTTP_SESSION_VARS to work the way I think they should. Shouldn't I just be able to do something like: in a file called index.php I have the following; ?php session_start(); ? html head/head body The session_id is ?php echo \.session_id().\; ? a

[PHP] Re: Sessions / logins / cookies / security

2002-07-17 Thread Peter James
There's a good article on authentication at phpbuilder.com http://www.phpbuilder.com/columns/tim2505.php3 that may provide an idea or two. - Original Message - From: Chad Day [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Tuesday, July 16, 2002 10:30 AM

  1   2   >