Jump to content

I have a problem with session


yolop

Recommended Posts

<?php
session_start();
$_SESSION['s']='FF';
echo "<input type='text'  name='subject' value='". $_SESSION['s']."' size='40'>";
?> 

 

OHH thank

 

but I have another one problem

is there a security problem to save a password in session?

is there a situation that someone can stole or see the  session??

thank.

I dont think so that some one else can see the sesssion contents unless your code compromises it some where...

 

although i would never store a password in session...generally account checking is done using password only once at the start, then you set the session is password is correct.

 

on other pages you can check if session is set, no need to check password thre again..

 

hth

I dont think so that some one else can see the sesssion contents unless your code compromises it some where...

 

although i would never store a password in session...generally account checking is done using password only once at the start, then you set the session is password is correct.

 

on other pages you can check if session is set, no need to check password thre again..

 

hth

ok thank

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.