Use Django/Pinax authentication in PHP applications
by Daniel | hits(336)
TAGS:
php django pinax authentication login
is a great framework written in python! Some really great features of Django are:
If you can unpickle in PHP what Django pickled into the session, then you can just grab the relevant session data directly form database (using session id from cookie), and then you'll have a direct info which user is logged in Django site - if any.
EDIT:
Here's the "encryption" Django uses:
http://code.djangoproject.com/browser/django/tags/releases/1.3.1/django/contrib/sessions/backends/base.py#L91
After "decrypting" you should get something like:
{
'_auth_user_id': 123,
'_auth_user_backend': 'django.contrib.auth.backends.ModelBackend',
}
-- plus of course other session data you set yourself
You can get a good hosting plan at really good prices to try PHP, Django/Python, Ruby etc on Webfaction: ssh access to your server, a lot of bandwith and disk space and you can even choose your preferred server location, either Europe or USA.