Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Jun 2006
    Location
    UK
    Posts
    892
    Thanks
    301
    Thanked 2 Times in 2 Posts

    Question Sharing Sessions b/w 2 different apps?

    Hi

    Is there anyway we can share a login session between two apps one of which is developed in php and the other one in Ruby or Perl or Python?


    Thanks

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,979
    Thanks
    4
    Thanked 2,659 Times in 2,628 Posts
    Not with builtin you can't. Unless you can configure one language to use the same information location and same serialization technique.
    Use a database driven session handling instead. More work, but completely under your control.

  • Users who have thanked Fou-Lu for this post:

    phantom007 (01-31-2012)

  • #3
    Senior Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    4,091
    Thanks
    51
    Thanked 506 Times in 493 Posts
    Alternatively create a php script that can interact with the session and output/accept the data. You'll need to specify the session id in the request headers though.

    That way your other app/language can make a http call to interact with it. Bit sloppy if its on the same machine though but useful if its remote.
    My helpful sig is on vacation trying to loose some weight. It got a bit fat and caused a few problems but it will be back at some point!

  • Users who have thanked tangoforce for this post:

    phantom007 (01-31-2012)

  • #4
    Regular Coder
    Join Date
    Jun 2006
    Location
    UK
    Posts
    892
    Thanks
    301
    Thanked 2 Times in 2 Posts
    Thanks so much for your help.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •