udens Posted February 25, 2007 Report Share Posted February 25, 2007 nevaru atrast probleemu kapeec nekas nenotik te regjistreeju sesiju: session_start(); session_register('login'); header("location:http://127.0.0.1"); peectam shitaa meegjinu paarbaudiit: session_start(); if(!session_is_registered('login')){ } esle { } bt sesija ntiek regjistreeta vai arii parbaudiita, nezinu jo nekas nenotiek.... Link to comment Share on other sites More sharing options...
andrisp Posted February 25, 2007 Report Share Posted February 25, 2007 Redirekts vispār notiek ? Ieslēdz error reportingu php.ini failā. Un vari iztikt arī bez session_register un session_is_registered fjām. Tā vietā vienkārši $_SESSION['login'] = true; un if (isset($_SESSION['login'])). Btw, ir else nevis esle ;). Link to comment Share on other sites More sharing options...
udens Posted February 26, 2007 Author Report Share Posted February 26, 2007 es atriisinaaju probleemu arii tavs variants negaaja, bet probleema izraadijas pavisam muljkjiiga - vaina nebija kodaa, bet vienk firewall blokjeeja cookies, kad izrubiju firewall viss uzreiz aizgaaja... Link to comment Share on other sites More sharing options...
andrisp Posted February 26, 2007 Report Share Posted February 26, 2007 udens, es jau nepiedāvāju nekādu variantu :), es tikai ieteicu, kā man liekas labāk darīt. Btw, no manuāļa: If you want your script to work regardless of register_globals, you need to instead use the $_SESSION array as $_SESSION entries are automatically registered. If your script uses session_register(), it will not work in environments where the PHP directive register_globals is disabled. Un defaultā php nāk ar register_globals off. Link to comment Share on other sites More sharing options...
udens Posted February 26, 2007 Author Report Share Posted February 26, 2007 tnx njemshu veeraaa Link to comment Share on other sites More sharing options...
Ghenis Posted February 26, 2007 Report Share Posted February 26, 2007 var norādīt, lai php kabina klāt GETiem SESIJAS ID, nevis glabā to cepumos. konfigurācijas direktīva session.use_cookies Link to comment Share on other sites More sharing options...
andrisp Posted February 26, 2007 Report Share Posted February 26, 2007 Sesijas būtību (un šā jautājuma/problēmas) jēgu jau tas nemaina. Link to comment Share on other sites More sharing options...
Recommended Posts