you have to *start* the session at the beginning of the ajax php file <?php session_start();
ajax stuff.... echo "response to browser"; ?> On 10/31/07, mail2rvg <[EMAIL PROTECTED]> wrote: > > > I build a web application using PHP5 and Prototype JS. When logging > into the system, the session is filled with an user_id. In the > application, the user_id is necessary to determine the user > rights....but when I use an Ajax Request the PHP session suddenly is > empty! > > Does anyone know a solution for this problem? > > Thanks in advance. > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
