Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #4002

Re: Session Not Working In Folders?

From Jerry Stuckle <jstucklex@attglobal.net>
Newsgroups comp.lang.php
Subject Re: Session Not Working In Folders?
Date 2011-12-03 15:12 -0500
Organization A noiseless patient Spider
Message-ID <jbdvsa$5ge$1@dont-email.me> (permalink)
References <fffb59c1-0b69-4512-8d13-f003fcad190d@l19g2000yqc.googlegroups.com>

Show all headers | View raw


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

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

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

csiph-web