473,382 Members | 1,204 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

PHP Session issue with different directory

PHP Session issue with different directory

Application structure :

root_directory :
- login.php
- register.php

root/member
- memberprofile.php
- test2.php

root/manager
- managerprofile.php
- test3.php
- test4.php

When any member/manager will login from root/login.php (the session created) and redirect to particular directory.
if member login, he will be redirect to root/member/memberprofile.php

When i was in my development mode with xampp, it was working fine but when the applicatoin has been uploaded to live windows server. The session issue has been occurred.

When the member/manager will login then on the next page (root/member/memberprofile.php), the session value has not been read and the script redirect him to login page as the session is not set.

The main issue is, session values are not accessible in other directory. I have tried to store the session files in new common directory (root/temp) but still facing the same issue.
Aug 31 '15 #1
0 1114

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Paul Bearden | last post by:
I built a web application in C#.Net. It compiles and runs fine however... I need to move some of the files to a directory (actually another web site on the same server) to use the SSL...
0
by: Sty | last post by:
Hi, I have an webapplication, which shows photos in different directory. If I move a directory (or only change its name) the entiry session is lost and I have to login again. Does anyone know...
3
by: Sty | last post by:
Hi, I have a webapplication, which shows images in directories. There are different sub directories and you can change the directory by a pull down list. If I change the name of a directory, the...
4
by: Nicolas Beunier | last post by:
Hi! I am currently working on a Web Application using some HttpHandlers. As i need to read/update objects stored in session, each Handler implements the IRequestSessionState interface. When...
10
by: Li Pang | last post by:
Hi, I created a html page from which I give a link to another web site. The new site is opened in a new window. When I opened multiple windows, they all have the same SessionID. I want ot know...
2
by: blisspikle | last post by:
Is there any way to use the "imports" keyword for your current solution to use code (classes) that were used in a different solution in a different directory without compiling them to a dll? I...
3
by: singhPrabhat | last post by:
I want to compile source files which is in different directory than Makefile. How can I do this? GCC=gcc DEFs=-DCUSTOMERCENTRAL_V11 -DUNIX -DLINUX -DOPENSSL -D_REENTRANT CCWebConfiguration.o:...
7
by: Virendra Maloo | last post by:
I have developed an (PHP)application which has been tested on different development servers. So when I login to the app and navigate to a specific page just after loggin-in, the app logs-out and I...
1
by: starlight849 | last post by:
I have a simple script that opens a directory, reads through all the file names and then prints the output to a text file in a different directory. It looks something like this. My Question is how...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.