Authentication on the server side

View: New views
2 Messages — Rating Filter:   Alert me  

Authentication on the server side

by shangxiao :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Probably is a dumb question but I still don't really understand the workings of HTML_AJAX:

Is there any way to attach a session cookie to the client side so that I may wrap my server call with PEAR::Auth?

Dave
_______________________________________________
Html_ajax-devel mailing list
Html_ajax-devel@...
http://lists.bluga.net/mailman/listinfo/html_ajax-devel

Re: Authentication on the server side

by JoshuaEichorn :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

David Sanders wrote:

> Probably is a dumb question but I still don't really understand the workings of HTML_AJAX:
>
> Is there any way to attach a session cookie to the client side so that I may wrap my server call with PEAR::Auth?
>
> Dave
> _______________________________________________
> Html_ajax-devel mailing list
> Html_ajax-devel@...
> http://lists.bluga.net/mailman/listinfo/html_ajax-devel
>  
All the page cookies are sent on the ajax request.  So once you login
you can track things with the standard cookies.

You can enforce the auth in the registered methods or at the top of the
server file or whatever your ajax entry point is.

-josh
_______________________________________________
Html_ajax-devel mailing list
Html_ajax-devel@...
http://lists.bluga.net/mailman/listinfo/html_ajax-devel