Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #4000 > unrolled thread
| Started by | Amit Prakash Pawar <amitppawar2007@gmail.com> |
|---|---|
| First post | 2011-12-03 10:42 -0800 |
| Last post | 2011-12-05 22:21 -0600 |
| Articles | 5 — 4 participants |
Back to article view | Back to comp.lang.php
Session Not Working In Folders? Amit Prakash Pawar <amitppawar2007@gmail.com> - 2011-12-03 10:42 -0800
Re: Session Not Working In Folders? Jerry Stuckle <jstucklex@attglobal.net> - 2011-12-03 15:12 -0500
Re: Session Not Working In Folders? Jerry Stuckle <jstucklex@attglobal.net> - 2011-12-03 15:13 -0500
Re: Session Not Working In Folders? "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> - 2011-12-05 09:24 +0100
Re: Session Not Working In Folders? Hans Olo <doctor@vaderlishious.com> - 2011-12-05 22:21 -0600
| From | Amit Prakash Pawar <amitppawar2007@gmail.com> |
|---|---|
| Date | 2011-12-03 10:42 -0800 |
| Subject | Session Not Working In Folders? |
| Message-ID | <fffb59c1-0b69-4512-8d13-f003fcad190d@l19g2000yqc.googlegroups.com> |
Hi, I have index.php on root. Session register using $_session['user'] and redirected to abc/demo.php but on this location abc/demo.php session not working. session not working in directories . is that any setting in php.ini or anything? Same thing working on local(xampp) but on working on live server. How to solve this?
[toc] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2011-12-03 15:12 -0500 |
| Message-ID | <jbdvsa$5ge$1@dont-email.me> |
| In reply to | #4000 |
On 12/3/2011 1:42 PM, Amit Prakash Pawar wrote: > Hi, > > I have index.php on root. > Session register using $_session['user'] > > and redirected to abc/demo.php > > but on this location abc/demo.php session not working. > session not working in directories . > > is that any setting in php.ini or anything? > > Same thing working on local(xampp) but on working on live server. > > How to solve this? So you call session_start() on every page before you use anything from the session or output ANYTHING (including white space) to the client? -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstucklex@attglobal.net ==================
[toc] | [prev] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2011-12-03 15:13 -0500 |
| Message-ID | <jbdvu3$5ge$2@dont-email.me> |
| In reply to | #4000 |
On 12/3/2011 1:42 PM, Amit Prakash Pawar wrote: > Hi, > > I have index.php on root. > Session register using $_session['user'] > > and redirected to abc/demo.php > > but on this location abc/demo.php session not working. > session not working in directories . > > is that any setting in php.ini or anything? > > Same thing working on local(xampp) but on working on live server. > > How to solve this? BTW - session_register() has been deprecated. The correct way to set/use session variables is the $_SESSION superglobal array. -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstucklex@attglobal.net ==================
[toc] | [prev] | [next] | [standalone]
| From | "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> |
|---|---|
| Date | 2011-12-05 09:24 +0100 |
| Message-ID | <jbhv32$tdm$1@dont-email.me> |
| In reply to | #4000 |
El 03/12/2011 19:42, Amit Prakash Pawar escribió/wrote: > I have index.php on root. > Session register using $_session['user'] Variables case case-sensitive. You should be using $_SESSION (uppercase). > and redirected to abc/demo.php > > but on this location abc/demo.php session not working. > session not working in directories . But... is it working anywhere else? -- -- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain -- Mi sitio sobre programación web: http://borrame.com -- Mi web de humor satinado: http://www.demogracia.com --
[toc] | [prev] | [next] | [standalone]
| From | Hans Olo <doctor@vaderlishious.com> |
|---|---|
| Date | 2011-12-05 22:21 -0600 |
| Message-ID | <COgDq.7285$LO2.5370@newsfe13.iad> |
| In reply to | #4000 |
On 12/3/2011 12:42 PM, Amit Prakash Pawar cried from the depths of the abyss: > Hi, > > I have index.php on root. > Session register using $_session['user'] > > and redirected to abc/demo.php > > but on this location abc/demo.php session not working. > session not working in directories . > > is that any setting in php.ini or anything? > > Same thing working on local(xampp) but on working on live server. > > How to solve this? Why don't your paste you index & demo code.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.php
csiph-web