Hi!
nameless wrote:
> In your opinion what is the best way to share userid with the PHP
> application ?
If you know where PHP sessions are stored on the file system, you can fetch
them manually and deserialize (there is a Python class to deserialize PHP
objects). Then you can fetch user id from t
Hi,
In your opinion what is the best way to share userid with the PHP
application ?
---
On Jun 7, 7:59 am, Dmitry Dulepov wrote:
> Hi!
>
> nameless wrote:
> > Someone has telled me that I could share the user id ( from Django and
> > PHP )
> > also throught a cookie.
> > I
Hi!
nameless wrote:
> Someone has telled me that I could share the user id ( from Django and
> PHP )
> also throught a cookie.
> In your opinion what is the best way ?
What would prevent me from forging a cookie with somebody else's user id
and impersonating another user? It is a major security
hep :D
On Jun 5, 7:41 pm, nameless wrote:
> I want to add cometchat ( written in PHP ) in my djangoproject and I
> need to
> edit this function to get it work ( a function that return the userid
> of the user logged in ):
>
> function getUserID() {
>
> // I could use SESSION or other to ge
I want to add cometchat ( written in PHP ) in my djangoproject and I
need to
edit this function to get it work ( a function that return the userid
of the user logged in ):
function getUserID() {
// I could use SESSION or other to get the user id fo the user
logged in:
if (!empt
Not directly.
The session cookie stores the session id (session key). The session id
references data stored for the session in the django session backend.
The user for that session is contained in that data. So it really
depends on what the session backend is. So I'll assume it's the
default which
Someone has telled me that I could share the user id ( from Django and
PHP )
also throught a cookie.
In your opinion what is the best way ?
Thanks ^_^
-
On Jun 5, 4:01 pm, Vasil Vangelovski wrote:
> set
>
> SESSION_COOKIE_DOMAIN=".mychatapp.com"
>
> this will make the django cooki
set
SESSION_COOKIE_DOMAIN=".mychatapp.com"
this will make the django cookie valid both for www.mychat.com and
chat.mychat.com
On Sat, Jun 5, 2010 at 2:34 PM, nameless wrote:
> If the chat is in a subdomain ?
>
>
>
>
>
> On Jun 5, 2:05 pm, Vasil Vangelovski wrote:
>> It's possible
If the chat is in a subdomain ?
On Jun 5, 2:05 pm, Vasil Vangelovski wrote:
> It's possible if both of your applications are under the same domain.
> see the SESSION_COOKIE_* settings variables
>
> http://docs.djangoproject.com/en/dev/ref/settings/#session-cookie-age
>
> You can t
It's possible if both of your applications are under the same domain.
see the SESSION_COOKIE_* settings variables
http://docs.djangoproject.com/en/dev/ref/settings/#session-cookie-age
You can then find the current user by the sessionid from the django_* tables.
On Sat, Jun 5, 2010 at 1:40 PM, na
I have a django blog project and a chat in PHP.
I need to share the id of the user logged in django
( request.user.id ) with the chat in PHP.
Is this possible ?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email
11 matches
Mail list logo