Welcome to WebmasterWorld Guest from 50.19.190.144

Forum Moderators: bakedjake

Message Too Old, No Replies

session id problem

     
8:56 am on Nov 5, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:Oct 19, 2001
posts:51
votes: 0


I was wondering if the best choice for session id usage is mod_rewrite or if there are other options available? thanks
10:14 am on Nov 5, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 29, 2003
posts:790
votes: 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.

1:28 am on Nov 6, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 31, 2003
posts:1316
votes: 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.

8:45 pm on Nov 6, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:Oct 19, 2001
posts:51
votes: 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?

8:59 pm on Nov 6, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:Oct 19, 2001
posts:51
votes: 0


I just found the apache server forum perhaps this would have been better posted there?
11:47 pm on Nov 6, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 31, 2003
posts:1316
votes: 0


based on the user agent

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

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members