473,395 Members | 1,872 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,395 software developers and data experts.

A big problem with SESSIONS

Hello everyone , am running PHP 4.
I dont use SESSION IDs in URL.
This is what the problem is.
I set a session in file
Expand|Select|Wrap|Line Numbers
  1.  http://vegetariancooking.mobi/index.php
, it works fine , and displays the session too. However , when I goto
Expand|Select|Wrap|Line Numbers
  1. http://www.vegetariancooking.mobi/index.php
, why isnt the session displaying ?
I mean the session value ?
Please help me , thank you so much.
May 9 '08 #1
2 1188
Markus
6,050 Expert 4TB
Hello everyone , am running PHP 4.
I dont use SESSION IDs in URL.
This is what the problem is.
I set a session in file
Expand|Select|Wrap|Line Numbers
  1.  http://vegetariancooking.mobi/index.php
, it works fine , and displays the session too. However , when I goto
Expand|Select|Wrap|Line Numbers
  1. http://www.vegetariancooking.mobi/index.php
, why isnt the session displaying ?
I mean the session value ?
Please help me , thank you so much.
No idea.

Us seeing your code might help?
May 9 '08 #2
dlite922
1,584 Expert 1GB
Hello everyone , am running PHP 4.
I dont use SESSION IDs in URL.
This is what the problem is.
I set a session in file
Expand|Select|Wrap|Line Numbers
  1.  http://vegetariancooking.mobi/index.php
, it works fine , and displays the session too. However , when I goto
Expand|Select|Wrap|Line Numbers
  1. http://www.vegetariancooking.mobi/index.php
, why isnt the session displaying ?
I mean the session value ?
Please help me , thank you so much.
That's how sessions work, I believe for security reasons.

If the URL changes anywhere between the HTTP and the .COM. the session will not register.

This is even true when switching between HTTPS and HTTP when the rest of the domain name is the same.

Try passing the session with GET to the new URL, then store it in the session there.

Good luck,


-Dan
May 10 '08 #3

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

Similar topics

13
by: jing_li | last post by:
Hi, you all, I am a newbee for php and I need your help. One of my coworker and I are both developing a webpage for our project using php. We have a copy of the same files in different location...
4
by: vesely | last post by:
Hi all, I'm currently relying on logged-in users hitting "logout" (logoff) before they leave, in order to terminate the session. With PHP the session filename is in a cookie that lasts for the...
1
by: Vince | last post by:
I have several questions about queries I make into my database. I will explain you. Could you please help me? 1)In my people table, persons have a title (Mr, Miss, or whatever). " select...
1
by: ben | last post by:
I have a Session table: Username Type ------------------ bob private bob private sally private bob duet And I have an event table
0
by: melledge | last post by:
The Reliable Source for Everything XML - XML 2005 Update XML 2005 - November 14-18 - Atlanta Hilton Hotel - Atlanta, GA www.xmlconference.org Register today and participate in IDEAlliance's...
8
by: Angel | last post by:
Hi everybody, I am new to ASP.NET, and my question might be obvious to most of you but I do not seem to find many things about threads and ASP.NET. I have an object(Object 1) which need some...
4
by: Ollie | last post by:
Is there anyway to montior the number of user sessions from an asp.net app\page? The reason I ask is because I would like to throttle the number of concurrent sessions to a website, i.e. limit...
2
by: Gavin Lyons via .NET 247 | last post by:
Hello, I'm writing a newsletter application which uses backgroundthreading. I'm using Session variable to report on progresswhile it loops through a dataset. The 'Status.aspx' pagerefreshes every...
6
by: Daniel Walzenbach | last post by:
Hi, I have a web application which sometimes throws an “out of memory” exception. To get an idea what happens I traced some values using performance monitor and got the following values (for...
18
by: Gleep | last post by:
I've searched google intensely on this topic and it seems noone really knows how to approch this. The goal I don't want clients to give out their usernames and passwords to friends, since the site...
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: 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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.