Hi,

I have an app on cake php that, when user logs in on mydomain.com, it should be redirected to user.mydomain.com. However, the session variables are not being passed. How do i pass the session information from the main domain to the subdomain? The session is stored in mysql db.

Thanks

If users session is stored in a table (something that has disadvantages and few advantages) then why don’t you pass just the primary key of that table (e.g. in a post variable)? (Of course along with something that will secure your app – like a hashing key of that pass or even better creating a table for these passes and pass only the id of that table and not primary key of the session’s table).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.