Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
IE shit

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side
View previous topic :: View next topic  
Author Message
blind*dragon



Joined: 05 Jan 2004
Posts: 46

PostPosted: 28.11.2004 18:11    Post subject: IE shit Add user to your forum ignore list Reply with quote

Kada korisim Firefox
Sve radi ok!

A kada koristim IE: slijedi problem
->ovaj:
Imam početnu stranicu (index.php), na kojoj se nalaze vijesti i
forma za logiranje, kada se korisnik logira (forma ga šalje u index.php?action=logon)i tamo mu umjesto forme za logiranje piše ime, broj privatnih poruka itd. sada npr. korisnik klikne na link "O nama" i onda klikne na "Index", znači vrati se na početnu stranicu, i onda se pojavi forma za logiranje (tretira ga kao odlogiranog), a trebalo bi pisati njegovo ime itd.
ZAŠTO ? Twisted Evil Twisted Evil

Onda sam skužio da IE uopće ne šalje serveru request, već da vadi traženu adresu iz svog Temporarya
i to tako da sam u PHP skriptu index.php dodao
Code:
echo date(H:i:s)
, znači da mi izbacuje time, kliknem na Refresh i pokažami vrijeme, nakon 5s kliknem opet na Refresh i vrijeme mi ostane isto, pa opet nakon 5s kliknem na Refresh i opet isto.
Kak da ga natjeram da pošalje serveru request

_________________
blind dragon
Back to top
View user's profile Send private message
che.UP
mi3.crew


Joined: 07 Sep 2003
Posts: 2320
Location: zagreb

PostPosted: 28.11.2004 22:11    Post subject: Add user to your forum ignore list Reply with quote

to je neki tvoj login sistem?

sto se tice ovog cacheiranja stranice, pogledaj ovo - http://www.php.net/header
imas primjer headera koji se salju bas zbog tog razloga...

_________________
UP | TypeTester | Accommodations App
Meni u Firefox-u ne radi AJAX
Back to top
View user's profile Send private message Visit poster's website
silence



Joined: 24 Apr 2004
Posts: 890
Location: .....ni na nebu, ni na zemlji.....

PostPosted: 28.11.2004 22:41    Post subject: Add user to your forum ignore list Reply with quote

sad me boli glava od headera Very Happy

j/k

_________________
This End-User License is an agreement between Microsoft Corporation (hereafter referred to as "Microsoft") and you, the end-user (hereafter referred to as "our bitch").
Back to top
View user's profile Send private message Visit poster's website
blind*dragon



Joined: 05 Jan 2004
Posts: 46

PostPosted: 28.11.2004 23:41    Post subject: Add user to your forum ignore list Reply with quote

che.UP wrote:
to je neki tvoj login sistem?.


pa recimo da je:
Code:

<?php
session_start();
include("connect.php");
include("config.php");
connect_db();

$LOGIN=false;
//begin// logirani korisnik
if ($HTTP_GET_VARS['click']=="logout"){
   session_unset();
   session_destroy();
}
elseif (session_is_registered("id")){
   if ($REMOTE_ADDR==$HTTP_SESSION_VARS['ip']){
      $LOGIN=true;
      $ID=$HTTP_SESSION_VARS['id'];
   }
}
//end// logirani korisnik


//begin// ako se korisnik logira
if ($HTTP_GET_VARS['click']=="login" && $LOGIN!=true){
      require("includes/enkod.php");
      $result = mysql_query("select id,korisnik,lozinka from korisnici where korisnik='".$HTTP_POST_VARS['korisnik']."' and lozinka='".code($HTTP_POST_VARS['lozinka'])."'") or die (mysql_error());
      $row = mysql_fetch_array($result);
      if (mysql_num_rows($result)==1){
         
         //begin// postavljanje sessiona
         session_start();
         $id=$row["id"];
         $user=$row["korisnik"];
         $ip=$REMOTE_ADDR;
         session_register("id","user","ip");
         $LOGIN=true
         //end// postavljanje sessiona


         header("Location: index.php?sid=".session_id()."");
      }
      else{
         $errors=$errors."*Pogrešena kombinacija korisničkog imena i lozinke !";
      }

}
//end// ako se korisnik logira
?>

_________________
blind dragon
Back to top
View user's profile Send private message
silence



Joined: 24 Apr 2004
Posts: 890
Location: .....ni na nebu, ni na zemlji.....

PostPosted: 29.11.2004 00:09    Post subject: Add user to your forum ignore list Reply with quote

hmmmmmm......vidim par stvari koje bi sigurno drugačije napisao, ali zakaj te jebe IE, nemam pojima, neko pametniji od mene bi trebo to reći....

vrlo drugačije....
Very Happy

_________________
This End-User License is an agreement between Microsoft Corporation (hereafter referred to as "Microsoft") and you, the end-user (hereafter referred to as "our bitch").
Back to top
View user's profile Send private message Visit poster's website
blind*dragon



Joined: 05 Jan 2004
Posts: 46

PostPosted: 29.11.2004 00:22    Post subject: Add user to your forum ignore list Reply with quote

Ovo sa headerima pali

_________________
blind dragon
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group