Re: [PHP] Re: PHP Sessions || Problems with AOL, Safari, etc.

2006-10-28 Thread Ed Lazor
Check php.ini session settings.  There are some options in there for  
you to use in your scripts.  Set up scripts to test whether session  
cookies are being saved and then route accordingly.



On Oct 28, 2006, at 12:41 PM, sit1way wrote:


Hey all.

I run a members-only hockey report that relies on Session variable 
(s) to

grant/deny access to members-only site content.

Generally members have no trouble accessing members-only content once
logged-in to the site; however, since we have a few thousand  
members, I

frequently receive tech support requests along the lines of My login
doesn't work, I keep getting returned to the login screen.   
Invariably it's

McAffee anti-virus, or other anti-virus program running on the user's
computer that disables session cookies, or the user disabled  
session cookies

in attempts to make their browser more secure.

Is there a way to get around this problem?  Not being able to set  
Session
variable(s) is a major annoyance; one that I'd like to resolve if  
possible.


Suggestions welcome...

Thanks,

--Noah



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: PHP Sessions || Problems with AOL, Safari, etc.

2006-10-28 Thread sit1way
Hey all.

I run a members-only hockey report that relies on Session variable(s) to 
grant/deny access to members-only site content.

Generally members have no trouble accessing members-only content once 
logged-in to the site; however, since we have a few thousand members, I 
frequently receive tech support requests along the lines of My login 
doesn't work, I keep getting returned to the login screen.  Invariably it's 
McAffee anti-virus, or other anti-virus program running on the user's 
computer that disables session cookies, or the user disabled session cookies 
in attempts to make their browser more secure.

Is there a way to get around this problem?  Not being able to set Session 
variable(s) is a major annoyance; one that I'd like to resolve if possible.

Suggestions welcome...

Thanks,

--Noah

 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] sessions problems

2005-04-30 Thread Anasta
Anyone know how to update a record on logout, heres what i am using for
login, however there iare no variables for the logout page.

?
session_start();  // Start Session

include(connect.php);

$username = $_POST['username'];
$password = $_POST['password'];

   // Register some session variables
   session_register('username');
   $_SESSION['username'] = $username;
 //sets user online to yes
$sql = mysql_query(UPDATE users SET online='1' WHERE username='$username'
AND password='$password');

   if (($username == admin) And ($password == admin)) {
header(location: login_admin.php);
   } else {
header(location: login_success.php);
   }

?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] sessions problems

2005-04-30 Thread Deep
Hi,

   When someone hit the logout page say logout.php.
You can write the code in that page itself to update
the record. Since the username of that particular user
is stored as a session as long as the user closes the
browser window.

So in the logout page you can add like this.

session_start();
include(connect.php);
$uname=$_SESSION['username'];
$sql = mysql_query(UPDATE users SET online='0'
 WHERE username='$uname');

//alternatively u can also delete that particular user
from the database instead of updating the online
status to '0'.

I hope this might help you.

Regards
..Deeps..

--- Anasta [EMAIL PROTECTED] wrote:
 Anyone know how to update a record on logout, heres
 what i am using for
 login, however there iare no variables for the
 logout page.
 
 ?
 session_start();  // Start Session
 
 include(connect.php);
 
 $username = $_POST['username'];
 $password = $_POST['password'];
 
// Register some session variables
session_register('username');
$_SESSION['username'] = $username;
  //sets user online to yes
 $sql = mysql_query(UPDATE users SET online='1'
 WHERE username='$username'
 AND password='$password');
 
if (($username == admin) And ($password ==
 admin)) {
 header(location: login_admin.php);
} else {
 header(location: login_success.php);
}
 
 ?
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


Yahoo! India Matrimony: Find your life partner online
Go to: http://yahoo.shaadi.com/india-matrimony

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Sessions Problems

2004-09-04 Thread Octavio Herrera
Hi guys

well I've been trying with named sessions, and nothing, then I did a pop up
window to show me the $_SESSION content and when I reload that window a
ramdom number of times, then the session expires and the $_SESSION array
disappears!!! what can be this due to?? Im using PHP 4.3.3 and if you want
to see the phpinfo go to www.wspanel.net/phpinfo.php

can please anybody help me??

thank you very much

Octavio

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Sessions Problems

2004-09-03 Thread raditha dissanayake
Octavio Herrera wrote:
Hello, im working in a website and I have this problem with sessions
I have an admin page where I use session_start()  and I have the user
interface page where I also use session start, the problem is that when I
open the user page, it overwrites my session I previously opened in the
admin page, how can I avoid this?'
 

What exactly do you mean by overwrites your session? are you refering to 
the data stored in the session? if you attempt to store two items with 
the same key in session it will definitely get overwritten.

thank you very much
Octavio
 


--
Raditha Dissanayake.

http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 128 KB | with progress bar.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Sessions Problems

2004-09-03 Thread Octavio Herrera
No, I do not store two items with the same key, I just open another session
in other page and it just overwrite session data of a previous session

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Sessions Problems

2004-09-03 Thread raditha dissanayake
Octavio Herrera wrote:
No, I do not store two items with the same key, I just open another session
in other page and it just overwrite session data of a previous session
 

hi,
again this does not provide enough information,you will need to more 
clearly state the problem please are you using cookies, are you usuing 
two browser windows in the same machine? etc etc.

btw since you have trimmed all of the previous messages, people would 
now lose track of the thread. you will be better of starting a new 
thread instead of posting a reply to this message.

--
Raditha Dissanayake.

http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 128 KB | with progress bar.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Sessions Problems

2004-09-03 Thread Mark

--- Octavio Herrera [EMAIL PROTECTED] wrote:

 No, I do not store two items with the same key, I just open another
 session
 in other page and it just overwrite session data of a previous
 session

This is because (I believe) you can't open two cookie-based sessions
with two browser windows and expect to have two separate sessions.

 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


=
Mark Weinstock
[EMAIL PROTECTED]
***
You can't demand something as a right unless you are willing to fight to death to 
defend everyone else's right to the same thing.
***



___
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Sessions Problems

2004-09-03 Thread Jason Davidson
Read up on 'named sessions'

I think that may be your solution

jason

Mark [EMAIL PROTECTED] wrote: 
 
 
 --- Octavio Herrera [EMAIL PROTECTED] wrote:
 
  No, I do not store two items with the same key, I just open another
  session
  in other page and it just overwrite session data of a previous
  session
 
 This is because (I believe) you can't open two cookie-based sessions
 with two browser windows and expect to have two separate sessions.
 
  
  -- 
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
  
  
 
 
 =
 Mark Weinstock
 [EMAIL PROTECTED]
 ***
 You can't demand something as a right unless you are willing to fight to death
 to defend everyone else's right to the same thing.
 ***
 
 
   
 ___
 Do you Yahoo!?
 Win 1 of 4,000 free domain names from Yahoo! Enter now.
 http://promotions.yahoo.com/goldrush
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Sessions Problems

2004-09-03 Thread Mark

--- Jason Davidson [EMAIL PROTECTED] wrote:

 Read up on 'named sessions'
 
 I think that may be your solution

Interesting... here's a link to php.net. I assume this is what you're
talking about... Looks promising.

http://us4.php.net/manual/en/function.session-name.php

 
 jason
 
 Mark [EMAIL PROTECTED] wrote: 
  
  
  --- Octavio Herrera [EMAIL PROTECTED] wrote:
  
   No, I do not store two items with the same key, I just open
 another
   session
   in other page and it just overwrite session data of a previous
   session
  
  This is because (I believe) you can't open two cookie-based
 sessions
  with two browser windows and expect to have two separate
 sessions.
  
   
   -- 
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, visit: http://www.php.net/unsub.php
   
   
  
  
  =
  Mark Weinstock
  [EMAIL PROTECTED]
  ***
  You can't demand something as a right unless you are willing to
 fight to death
  to defend everyone else's right to the same thing.
  ***
  
  
  
  ___
  Do you Yahoo!?
  Win 1 of 4,000 free domain names from Yahoo! Enter now.
  http://promotions.yahoo.com/goldrush
  
  -- 
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
  
  
 


=
Mark Weinstock
[EMAIL PROTECTED]
***
You can't demand something as a right unless you are willing to fight to death to 
defend everyone else's right to the same thing.
***



__
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Sessions Problems

2004-09-02 Thread Octavio Herrera
Hello, im working in a website and I have this problem with sessions

I have an admin page where I use session_start()  and I have the user
interface page where I also use session start, the problem is that when I
open the user page, it overwrites my session I previously opened in the
admin page, how can I avoid this?'

thank you very much

Octavio

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Sessions PROBLEMS

2002-03-07 Thread Sven Jacobs

Hey

I have a problem with sessions,
with the code below If I post i always seems to get the same session_id 
That is not the idea.
I want to generate everytime a unique one 
what is wrong with my code 



if ($action ==logout){

session_destroy(); 
print destroy;
}

if ( $action == post ){
session_start();
session_register($username);
print session_id();
print BRinput type='text' name='azerty' size='100';
print a
href='http://192.168.101.75/netsaint/ldap3.php?action=logout'Logout/a;
}

if ( $action ==  ){
print
form name='test' action
='http://192.168.101.75/netsaint/ldap3.php?action=post' method ='post'
Login : input type='text' name='username'
Password : input type='password' name='password'
input type='submit' name='blabla' value='blabla'
/form
;
} 
?









-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Sessions Problems!

2001-12-31 Thread Phillip M.(Mike) Bishop

I am having problems with my sessions. I authenticate the user against a
mysql db. The authentication works fine and the session script works fine
for all my other domains except one. They all reside on the same webserver
using the same session class. The problem I have is when the user logs in,
they get to the first page. When they go to another page they have to
relogin.  The session file is created but it is empty. This script worked
fine on this domain until Friday. Nothing has changed what could be the
cause of this.

Thanks in advance for any insight into this problem.

Mike


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Sessions Problems!

2001-12-31 Thread Jim Lucas [php]

when you say that nothing  changed, does that include permissions on the tmp
session directory, the httpd.conf file or any related configurations?

Jim
- Original Message -
From: Phillip M.(Mike) Bishop [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 31, 2001 2:58 AM
Subject: [PHP] Sessions Problems!


 I am having problems with my sessions. I authenticate the user against a
 mysql db. The authentication works fine and the session script works fine
 for all my other domains except one. They all reside on the same webserver
 using the same session class. The problem I have is when the user logs in,
 they get to the first page. When they go to another page they have to
 relogin.  The session file is created but it is empty. This script worked
 fine on this domain until Friday. Nothing has changed what could be the
 cause of this.

 Thanks in advance for any insight into this problem.

 Mike


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Sessions Problems!

2001-12-31 Thread Phillip M.(Mike) Bishop

Correct. The same authentication script is used on 4 other domains on my
server. They are able to write the session file to /tmp and so is the other
domain expect the file is a 0 byte file.

- Original Message -
From: Jim Lucas [php] [EMAIL PROTECTED]
To: Phillip M.(Mike) Bishop [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Monday, December 31, 2001 12:57 PM
Subject: Re: [PHP] Sessions Problems!


 when you say that nothing  changed, does that include permissions on the
tmp
 session directory, the httpd.conf file or any related configurations?

 Jim
 - Original Message -
 From: Phillip M.(Mike) Bishop [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, December 31, 2001 2:58 AM
 Subject: [PHP] Sessions Problems!


  I am having problems with my sessions. I authenticate the user against a
  mysql db. The authentication works fine and the session script works
fine
  for all my other domains except one. They all reside on the same
webserver
  using the same session class. The problem I have is when the user logs
in,
  they get to the first page. When they go to another page they have to
  relogin.  The session file is created but it is empty. This script
worked
  fine on this domain until Friday. Nothing has changed what could be the
  cause of this.
 
  Thanks in advance for any insight into this problem.
 
  Mike
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] sessions problems :/

2001-08-31 Thread Rui Barreiros



i'm sorry if the solution to this problem was posted here before, but if it 
was i couldn't find it.

i have an app that it's basically like this:

index.php:

$app = new App;
$app-start();

in class app:

function start() {
()
session_start();

if($need_auth) {
global $auth; /* another class */
if(!isset($auth)) {
$auth = new auth;
session_register(auth);
}
$auth-start();
}
()
}

my question is, the auth class get's registered, and the auth array inside 
the auth class ($auth-auth[]) get his values recorded on the first attempt, 
but, if the user tries again, it doesn't refresh the session data, oh i'm 
using my session functions to write them on a mysql db, i've been debugging, 
and i can see all the queries that the session stores in the db through 
syslog, and for instance in $auth-start() if i change any variable like 
$this-auth[username]=$username; the data field passed to my 
session_write() still has the first value not $username instead.

another question is, at what time of the script does php call my 
session_write function to update the registered session?!

thanks all
-- 
Rui Barreiros
   Software Developer

WEBSOLUT - Soluções Internet
Emailto: [EMAIL PROTECTED] 
Personal Info: http://websolut.net/people/rui.html

As informações contidas neste email são confidenciais
e destinam-se apenas à(s) pessoa(s) a quem foi enviado:
http://websolut.net/confidencialidade-responsabilidade.html

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]