Posts: 185
Location: print_r($serbia);
|
Hello,
Im writing a user registration php code for an image hosting script which doesn't have one.
I have finished implementing database to that script and users can now log in.
I have a db table which im planing to use for storing image name, size, width...
Problem begins when logged user tries to upload image.
Script is written to generate it's own session, so i can't check if a user is logged in or not.
I now have two sessions.
I tried editing all files that use session_id(), but same thing happens, php page that calls upload class uses that other session. This is the page i need with my session so i can get the image data.
It's all under one domain, but it's like the script is written to rewrite it self and it's root dir to a different sub dir.
Can anyone tell me how is that possible, to have two different sessions under one domain.
And if you can give me a tip for what to look for.
Thank you in advance.
|