Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 05-11-2008, 09:49 PM PHP cookies
Novice Talker

Posts: 7
Trades: 0
I use round cube web mail.
I've managed to integrate it very well with my own private design PHP site.
I've been trying to work something out and found a way around it but i'd rather do it another way.
I asked the question on round cube forums and got blank stares!
Here it is;

Roundcube assigns a cookie on login, i've been unable to capture the $_SESSION variables outside of roundcube, even though the cookie remains set.
I would like the cookie to follow the user throughout the site. To improve roundcube I've added a google search box and this takes the user out of roundcube and back into the base site. I added a hidden input into the google form that captures the value of $SESSION['username'} and send it along with the google query to the base site.

1st way : (loophole) I can capture the $SESSION['username'] inside round cube and echo it to the sitelinks, which allows the user to remain(illusion) inside the site. This is the method I use now. Not so flexible, only links back to roundcube useing set cookie (vulnerable to abuse)

2nd way: Somehow modify the cookie roundcube sets to be accesible from the site root, bypassing need to echo sitelinks and allowing for great flexibility. BEST- I want this!

3rd way: capture $_SESSION variables in roundcube, echo to POST and reset new $_session @ root level w/ $_POST. ok but not great, need to know all variables in $_SESSION.

Sound complicated now that I reread it, well here goes.

See it here : http://www.baluchon.net/phpsearch/?lang=en
Use login link (top right)
username: phpsearch
password: login

You can use the loop hole to get back to the root site by searching with the google search AFTER login.

Thanks in advance
Alex

???

Last edited by firemail; 05-11-2008 at 09:58 PM.. Reason: Added link
firemail is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to PHP cookies
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.07954 seconds with 12 queries