homepage Welcome to WebmasterWorld Guest from 54.145.183.169
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
session id problem
davaddavad

10+ Year Member



 
Msg#: 1272 posted 8:56 am on Nov 5, 2004 (gmt 0)

I was wondering if the best choice for session id usage is mod_rewrite or if there are other options available? thanks

 

the_nerd

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 1272 posted 10:14 am on Nov 5, 2004 (gmt 0)

Even if you mod-rewrite your session ids away (mypage.php?id=5 --> mypage5.htm) your problem still isn't solved: either the SE will pick up lots of identical pages with different names which might put you into trouble. Or they decide not to pick them up at all.

My suggestion: don't use any sessions / session id in public places where spiders drop by. Only use sessions for shopping carts, etc. where spiders are off-limits.

mcavic

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 1272 posted 1:28 am on Nov 6, 2004 (gmt 0)

Only use sessions for shopping carts, etc. where spiders are off-limits.

Yes. And I don't think you'd need mod_rewrite. Just stick the id in the url and read it from there.

But personally, I much prefer cookies only. I've only seen 2 or 3 instances in over 8 months where a user didn't appear to have cookies enabled. But then, most of my users don't know what cookies are.

davaddavad

10+ Year Member



 
Msg#: 1272 posted 8:45 pm on Nov 6, 2004 (gmt 0)

Thanks

How about setting a mod_rewrite condition based on the user agent (spiders) and perform a 301 redirect to the same script, but without the session ID? Any thoughts?

davaddavad

10+ Year Member



 
Msg#: 1272 posted 8:59 pm on Nov 6, 2004 (gmt 0)

I just found the apache server forum perhaps this would have been better posted there?

mcavic

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 1272 posted 11:47 pm on Nov 6, 2004 (gmt 0)

based on the user agent

Technically, this is against the rules of most engines, as it's cloaking.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved