PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   Troubleshooting (http://www.phpdig.net/forum/forumdisplay.php?f=22)
-   -   session_start (http://www.phpdig.net/forum/showthread.php?t=2312)

digitalbart2k 12-28-2005 12:40 PM

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 12-29-2005 08:36 AM

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();
}






All times are GMT -8. The time now is 05:18 PM.

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