1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Can you access ASP session variables from PHP

Discussion in 'Programming' started by jedweb, Nov 14, 2006.

  1. #1
    Can this be done?

    I've been unsuccessful in doing it so far so I'm wondering if it can't be done fro some reason or if I'm just doing something wrong.

    Thanks in advance.
     
    jedweb, Nov 14, 2006 IP
  2. smallbuzz

    smallbuzz Peon

    Messages:
    125
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Are you running both ASP and PHP pages on the same website?
    I'm thinking that you can't access session variables set in ASP from PHP. Because session management is handled by the ASP engine, so I don't see how the PHP engine can get to it.
     
    smallbuzz, Nov 14, 2006 IP
  3. ServerUnion

    ServerUnion Peon

    Messages:
    3,611
    Likes Received:
    296
    Best Answers:
    0
    Trophy Points:
    0
    #3
    i dont believe you will be able to, try using cookies. Good luck
     
    ServerUnion, Nov 14, 2006 IP
  4. jedweb

    jedweb Peon

    Messages:
    60
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks for the replies. I didn't think it would work but I thought I'd try it.

    I am trying to do a gradual switch from asp to php on this particular site. Perhaps it is a better idea to just do it all at once...
     
    jedweb, Nov 14, 2006 IP
  5. ServerUnion

    ServerUnion Peon

    Messages:
    3,611
    Likes Received:
    296
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I agree, just do it all at once...
     
    ServerUnion, Nov 14, 2006 IP
  6. frankcow

    frankcow Well-Known Member

    Messages:
    4,859
    Likes Received:
    265
    Best Answers:
    0
    Trophy Points:
    180
    #6
    you could just store the session variables in a cookie or in the querystring, and pass them in between scripts
     
    frankcow, Nov 14, 2006 IP