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
Mod rewrite and cookies in php
Old 08-20-2004, 03:08 PM Mod rewrite and cookies in php
Junior Talker

Posts: 1
Trades: 0
I use mod rewrite to make my website's forums for search engine friendly. However on pages where the user has been sent there by mod rewrite cookies seem as though they cannot be accessed via php. Is there any way to get around this?
flipw is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-20-2004, 07:08 PM
webwoRRks's Avatar
Ultra Talker

Posts: 426
Location: I hope so
Trades: 0
What?
__________________
Theres 10 types of people; those who understand binary, and those who don't.
webmaster and webdeveloper resources,
Please login or register to view this content. Registration is FREE
webwoRRks is offline
Reply With Quote
View Public Profile Visit webwoRRks's homepage!
 
Old 08-20-2004, 07:59 PM
Christopher's Avatar
Iced Cap

Latest Blog Post:
Cross-domain AJAX with JSONP
Posts: 3,110
Location: Toronto, Ontario
Trades: 0
How are you rewriting the URL's? If you're making it seem as if it's on a different domain/subdomain etc then you might have that problem. What forum software are you running anyway?

There should be some config value where you set the path for you cookie (usually simply '/' will do). This is the path that the cookie will work under, so if you're cookie path is '/forums' and your mod_rewrite is making the URL something like '/showthread' etc, then that's why. Changing your cookie path to '/' should solve that.
__________________

Please login or register to view this content. Registration is FREE
- Latest Articles:
Please login or register to view this content. Registration is FREE
,
Please login or register to view this content. Registration is FREE

--
Please login or register to view this content. Registration is FREE

Christopher is offline
Reply With Quote
View Public Profile
 
Old 08-21-2004, 06:56 AM
webwoRRks's Avatar
Ultra Talker

Posts: 426
Location: I hope so
Trades: 0
or set them in a lower level directory....
__________________
Theres 10 types of people; those who understand binary, and those who don't.
webmaster and webdeveloper resources,
Please login or register to view this content. Registration is FREE
webwoRRks is offline
Reply With Quote
View Public Profile Visit webwoRRks's homepage!
 
Reply     « Reply to Mod rewrite and cookies in php
 

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.33553 seconds with 12 queries