Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Session values are losting in 'http://www.myurl' but its working in 'http://myurl'
Old 12-06-2008, 06:51 AM Session values are losting in 'http://www.myurl' but its working in 'http://myurl'
jeh
Junior Talker

Posts: 1
Name: jeh
Trades: 0
HI,

My project have multiple modules. I have one menu it contains all module tabs. Let us,

i login in one module is called 'XXX'. Next i am going to another module is

called 'YYY' by clicking menu. In this process session values are working in

'XXX' module. But in 'YYY' module session are losting if url alike

'http://WWW.myurl' but in 'http://myurl' session values are

working. How to solve this problem ? If u have any ideas please advice me.

Thank in advance,

Suman.
jeh is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-06-2008, 07:28 AM Re: Session values are losting in 'http://www.myurl' but its working in 'http://myur
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
The prime concern is to be consistent about the linking. Sessions are domain specific and as the www is a sub domain of "hostname" they are separate and distinct entities in the http protocol.

However read http://uk.php.net/setcookie mainly the "domain" setting.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Session values are losting in 'http://www.myurl' but its working in 'http://myurl'
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.15919 seconds with 12 queries