Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: session problem

by bigup401 (Pilgrim)
on Nov 25, 2014 at 17:44 UTC ( [id://1108377]=note: print w/replies, xml ) Need Help??


in reply to Re: session problem
in thread session problem

the thing is this, no problem with welcome.pl and home.pl.

home.pl has set the session, so welcome returns a string a983c8302e7a678a2e53c65e8bd3316 its a generated sid from

home.pl to welcome.pl and welcome.pl looks like this

welcome.pl?sid=a983c8302e7a678a2e53c65e8bd3316, so that shows session has been set and generated session sid,

so i want to retrieve same generated session sid to other pages

Replies are listed 'Best First'.
Re^3: session problem
by Corion (Patriarch) on Nov 25, 2014 at 17:57 UTC

    So you've established that hello.pl and welcome.pl work as you think they should.

    Have you done the same for myaccount.pl?

    As myaccount.pl and welcome.pl seem to work differently, there must be some difference in what the scripts receive and/or in what they send back.

    Have you tried copying the content of welcome.pl over myaccount.pl to see whether the difference is still there?

    How do you pass the session id from (say) welcome.pl to myaccount.pl?

      yes home.pl and welcome.pl works they is no difference on scripts bitween home.pl and myaccount.pl i copied content of welcome to myaccount.pl, bt myaccount.pl was not working i think the problem is here print "Location: welcome.pl?sid=$id\n\n"; it may be that am sending the session and generate the session sid to only welcome.pl where by myaccount.pl cant retrieve sid

        So maybe now is a good time to post three self-contained, runnable programs so we can try to reproduce your problem?

        Also, are you clear on the concept of session data, and how it will be passed around between your scripts? What mechanism are you using for passing the session id from welcome.pl to myaccount.pl?

        A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1108377]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-03-28 20:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found