22, November 2008

Can't login with IE - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Access_user Class (Moderator: Olaf)
Topic: Can't login with IE
« previous next »
Pages: [1] Print

Author Topic: Can't login with IE  (Read 2205 times)
OMG!I am geek
**
Posts: 57
394 credits
Members referred : 0


« on: Jul 20, 2007, 10:49:54 AM »

If I try to login using IE nothing happend even no notice for a wrong password arrises. The same procedure in firefox works verry well. I don't understand why.
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6440
39464 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Jul 20, 2007, 10:53:27 AM »

check your cookie/session settings for your client and server.

I guess the session id is not stored in your client (IE)


Last blog : Just a better Internet portal provided by Google
OMG!I am geek
**
Posts: 57
394 credits
Members referred : 0


« Reply #2 on: Jul 20, 2007, 11:37:42 AM »

check your cookie/session settings for your client and server.

I guess the session id is not stored in your client (IE)
I'm using IE 6. And I realy cant find a cookie comming the expecting domain but I can see that google an other sides safe ther cookies. I've tried different setting for cookiehandling in IE default, overwrite cookie settings and allow session cookies but now cookie from the expecting  domain I can find and still no login.
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6440
39464 credits
Members referred : 374


It's time to use PHP5!


« Reply #3 on: Jul 20, 2007, 11:42:04 AM »

there must be at least the session cookie. try this function in place of session_start():

http://www.finalwebsites.com/snippets.php?id=42 Visit through proxy


Last blog : Just a better Internet portal provided by Google
OMG!I am geek
**
Posts: 57
394 credits
Members referred : 0


« Reply #4 on: Jul 20, 2007, 12:16:58 PM »

there must be at least the session cookie. try this function in place of session_start():

http://www.finalwebsites.com/snippets.php?id=42 Visit through proxy
I'm already using this session starter but still no session in IE but in firefox. It realy seems to by a setting problem with IE because if works in firefox but I've even tried diverend cookie settings in IE. I don't understand and I should work whith IE.
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6440
39464 credits
Members referred : 374


It's time to use PHP5!


« Reply #5 on: Jul 20, 2007, 02:20:36 PM »


I'm already using this session starter but still no session in IE but in firefox. It realy seems to by a setting problem with IE because if works in firefox but I've even tried diverend cookie settings in IE. I don't understand and I should work whith IE.

do you have an URL?


Last blog : Just a better Internet portal provided by Google
OMG!I am geek
**
Posts: 57
394 credits
Members referred : 0


« Reply #6 on: Jul 21, 2007, 01:50:58 AM »

...
do you have an URL?
No, its offline but I still have the problem ...
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6440
39464 credits
Members referred : 374


It's time to use PHP5!


« Reply #7 on: Jul 22, 2007, 08:10:29 AM »

No, its offline but I still have the problem ...

then no one can test if this is maybe a problem with your browser Smiley


Last blog : Just a better Internet portal provided by Google
OMG!I am geek
**
Posts: 57
394 credits
Members referred : 0


« Reply #8 on: Jul 22, 2007, 01:29:16 PM »

then no one can test if this is maybe a problem with your browser Smiley
Right, :-( but I've testet it whith different IEs from different Notebooks. It happend with IE 5.5,6,7. Other I have'nt tried.
OMG!I am geek
**
Posts: 57
394 credits
Members referred : 0


« Reply #9 on: Jul 22, 2007, 01:29:55 PM »

then no one can test if this is maybe a problem with your browser Smiley
Right, :-( but I've testet it whith different IEs from different Notebooks and the answer is the same. It happend with IE 5.5,6,7. Other I have'nt tried.
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6440
39464 credits
Members referred : 374


It's time to use PHP5!


« Reply #10 on: Jul 22, 2007, 01:41:30 PM »

I have tested the class with IE several times, no problems there...

provide us more info (and a URL) otherwise there is no way to help


Last blog : Just a better Internet portal provided by Google
OMG!I am geek
**
Posts: 57
394 credits
Members referred : 0


« Reply #11 on: Jul 22, 2007, 03:14:28 PM »

Maybe it's a simple question: Where does the IE store the session cookies. Here:
C:\Documents and Settings\zeus\Cookies
I can find no cookie.

With firefox a can see the session cookie.

Is there a way to login without using cookies?
OMG!I am geek
**
Posts: 57
394 credits
Members referred : 0


« Reply #12 on: Jul 22, 2007, 03:47:54 PM »

Safari, with cookies anabled, is even not able to login an user.
OMG!I am geek
**
Posts: 57
394 credits
Members referred : 0


« Reply #13 on: Jul 23, 2007, 12:53:05 PM »

The problems with IEs and Safari (and maybe some more browsers) depence on the session handler. It doe'nt work with this code:
Code:
<?php
/* This class code is based on the tutorial of Matt Wade
from http://www.zend.com/zend/spotlight/code-gallery-wade8.php */

/* Create new object of class */
$ses_class = new session();

/* Change the save_handler to use the class functions */
session_set_save_handler (array(&$ses_class'_open'),
                          array(&
$ses_class'_close'),
                          array(&
$ses_class'_read'),
                          array(&
$ses_class'_write'),
                          array(&
$ses_class'_destroy'),
                          array(&
$ses_class'_gc'));

function 
start_session($expire 0) {
    if (
$expire == 0) {
        
$expire ini_get("session.gc_maxlifetime");
    } else {
        
ini_set("session.gc_maxlifetime"$expire);
    }
    if (empty(
$_COOKIE['PHPSESSID'])) {
        
session_set_cookie_params($expire);
        
session_start();
    } else {
        
session_start();
        
setcookie("PHPSESSID"session_id(), time() + $expire);
    }
}
/* Start the session */
#session_start();
start_session();

class 
session {
    
/* Define the mysql table you wish to use with
       this class, this table MUST exist. */
    
var $ses_table SESSION_TABLE;

but with this code it works:
Code:
<?php
/* This class code is based on the tutorial of Matt Wade
from http://www.zend.com/zend/spotlight/code-gallery-wade8.php */

/* Create new object of class */
$ses_class = new session();

/* Change the save_handler to use the class functions */
session_set_save_handler (array(&$ses_class'_open'),
                          array(&
$ses_class'_close'),
                          array(&
$ses_class'_read'),
                          array(&
$ses_class'_write'),
                          array(&
$ses_class'_destroy'),
                          array(&
$ses_class'_gc'));

/* Start the session */
session_start();

class 
session {
    
/* Define the mysql table you wish to use with
       this class, this table MUST exist. */
    
var $ses_table SESSION_TABLE;

but now users are not log out automaticly If they do nothing. That's not fine ... Do you know why?
Code:
« Last Edit: Jul 23, 2007, 12:57:44 PM by tomz »
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6440
39464 credits
Members referred : 374


It's time to use PHP5!


« Reply #14 on: Jul 23, 2007, 03:26:55 PM »

as I said before it works fine for a lot of users...


Last blog : Just a better Internet portal provided by Google
OMG!I am geek
**
Posts: 57
394 credits
Members referred : 0


« Reply #15 on: Jul 24, 2007, 01:42:49 PM »

Do you have any idea why the change from session_start(); to start_session(); makes problems for the IEs? Unfortunately I'm not one of this for them it works fine. Sorry, but I don't understand how the IEs behavior belongs to the session to the new funktion.
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6440
39464 credits
Members referred : 374


It's time to use PHP5!


« Reply #16 on: Jul 24, 2007, 02:37:20 PM »

I wrote the start_session function to make it compatible with IE Smiley


Last blog : Just a better Internet portal provided by Google
OMG!I am geek
**
Posts: 57
394 credits
Members referred : 0


« Reply #17 on: Jul 24, 2007, 03:00:59 PM »

I wrote the start_session function to make it compatible with IE Smiley
I'm not in doubt about your intension. But in my case it's strange as I wrote.
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=6934
Tags : login IE Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Access_user Class (Moderator: Olaf)
Topic: Can't login with IE
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Nov 22, 2008, 03:56:57 PM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 37.736
Total Topics: 7.650
Total Members: 4.397
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: Janai

36 Guests, 4 Users online :

11 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.