andrisp Posted June 9, 2005 Report Share Posted June 9, 2005 tipa ir sesija kuru es meegjinu paartraukt shitaadi - session_unset(); session_destroy(); nestraadaa (ieprieksh bija uz cita servera tur straadaaja, bet gan paarnesu tad vairs ne) pameegjinaaju arii shitaa kautkaa setcookie( session_name() ,"",0,"/"); session_unset(); session_destroy(); bet vienalga sesija paliek dziiva.. kas par vainaam ? Link to comment Share on other sites More sharing options...
Delfins Posted June 9, 2005 Report Share Posted June 9, 2005 līks kods... līks browseris... tas nav atkarīgs no servera... Link to comment Share on other sites More sharing options...
andrisp Posted June 9, 2005 Author Report Share Posted June 9, 2005 un kaac buutu neliiks kods ? un taa notiek neatkariigi no browsera Link to comment Share on other sites More sharing options...
Delfins Posted June 9, 2005 Report Share Posted June 9, 2005 parādi kodu. savādāk no taviem jaut. neko nesaprast... Link to comment Share on other sites More sharing options...
Delfins Posted June 9, 2005 Report Share Posted June 9, 2005 (edited) <?php session_start(); @$_SESSION['xxx_var']++; print session_id() . ' => ' . $_SESSION['xxx_var']; if ($_SESSION['xxx_var']==3) { session_destroy(); } ?> ja tev counters ciklē kā 1,2,3,1,2,3,.... tad ar serveri viss ir kārtībā un tavs kods ir līks Edited June 9, 2005 by Delfins Link to comment Share on other sites More sharing options...
andrisp Posted June 9, 2005 Author Report Share Posted June 9, 2005 counters cikleejaas - bet tas ir normaali ka sessionid visulaiku ir vienaads ? Link to comment Share on other sites More sharing options...
Delfins Posted June 9, 2005 Report Share Posted June 9, 2005 counters cikleejaas - bet tas ir normaali ka sessionid visulaiku ir vienaads ? 18405[/snapback] ___manuāli___ lasi ??? Link to comment Share on other sites More sharing options...
andrisp Posted June 9, 2005 Author Report Share Posted June 9, 2005 counters cikleejaas - bet tas ir normaali ka sessionid visulaiku ir vienaads ? 18405[/snapback] ___manuāli___ lasi ??? 18406[/snapback] jaa jaa sapratu, bet vienalga kaukas nav ok.. panjeemu no manuaaalja rindinju kas izdzeesh arii kuukiju. <?php session_start(); $_SESSION["logged"]="0"; if (isset($_COOKIE[session_name()])) { setcookie(session_name(), '', time()-42000, '/'); } session_unset(); session_destroy(); header("Location: ../login/"); ?> Link to comment Share on other sites More sharing options...
andrisp Posted June 9, 2005 Author Report Share Posted June 9, 2005 atvainojos par kaitinaashanu - probleema bija tajaa ka nebiju noraadiisjis session_name sesijas nosaukumu... domaaju, ka nav taads vispaar bet reka bija gan. Link to comment Share on other sites More sharing options...
Delfins Posted June 9, 2005 Report Share Posted June 9, 2005 kāpēc? man viss strādā.. PS: tev session_unset() ir lieks... Link to comment Share on other sites More sharing options...
andrisp Posted June 9, 2005 Author Report Share Posted June 9, 2005 kāpēc? man viss strādā.. PS: tev session_unset() ir lieks... 18409[/snapback] man vienkaarshi kautkur citur (citaa lapaa) bija iedots nosaukums sesijai. taapeec nevareeja izdzeest kuukiju. Link to comment Share on other sites More sharing options...
Recommended Posts