PHP/PERL session handling

Discussion in 'HTML / PHP / JavaScript / CSS' started by Wopkeuh, Oct 22, 2003.

  1. I'm not too experienced with PERL, but I've a question about using sessions made with php in perl. I've done the following.

    I've made a login screen in php and it works perfectly. I'm not using cookies and that's exactly the way I want it to be.

    Now I want to do a login check in a PERL file. Is this possible or do I have to try a different approach?

    If it's possible, how do I do this?
     
  2. If you are using the PHP session handling functions (eg session_start) then there is no way to access those through Perl. If you absolutely do not want to use cookies, you would generally need to pass an extra variable to each script that is executed like sid (or user=<username>&pass=<password>).

    Because you're using PHP and Perl, you would need to have some sort of session repository, for example in a file or database. You may want to consider just using one language so that you can just use the functions available in that language for handling this type of information. Also, I understand why you wouldn't want to use cookies, but they make this kind of thing a *lot* easier [:)].

    Lots of tech articles and other stuff (soon, I hope!) at http://www.emptycauses.com
     

Share This Page