PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > Troubleshooting

Reply
 
Thread Tools
Old 12-28-2005, 01:40 PM   #1
digitalbart2k
Green Mole
 
Join Date: Jan 2004
Posts: 3
session_start

In a Older post you mentioned that phpdig does not use session_start, any suggestion how to get rid of this text then on my pages that say:

Warning: session_start : The session id contains invalid characters, valid characters are only a-z, A-Z and 0-9 in

I want to use sessions but is there a better way to do this?
digitalbart2k is offline   Reply With Quote
Old 12-29-2005, 09:36 AM   #2
digitalbart2k
Green Mole
 
Join Date: Jan 2004
Posts: 3
Was able to get it working

In case anyone runs into this problem, I was able to get this work by by putting the session_start in a if statement based on the useragent. I got the code from this link below and below that is the code I used.

exclude sessions

PHP Code:
$spiders = array("Googlebot","WebCrawler","Slurp","Fast","Scooter","Fluid","Zeal","Wget","archiver","ZyBorg ","Mantra","MSN","scrub","Teoma","Jeeves","msnbot","phpdig");


foreach(
$spiders as $Val

if (
eregi($Val$HTTP_SERVER_VARS['HTTP_USER_AGENT'])) 

 
$spider_count++; 


if (
$spider_count == "0") { 

session_start();
}



digitalbart2k is offline   Reply With Quote
Reply


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 Off
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:00 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.