Thanks for the reply, but i am aware of all this stuff. I am
not
asking for the way session is to be created, what actually i
need to
track the session under the inner session if it is existing
under the
parent file. The parent file code is as follow:
index.php:
<?php
$err = '';
if($_POST['posted'] == 'posted')
{
// Connecting to the mysql.
some php code....
// Checking for authentication
some php code....
}
if(!$_SESSION['loggedin'])
{
?>
<!doctype html public "-//W3C//DTD HTML 4.0
Transitional//EN">
<html>
<head>
<title>Web interface</title>
<meta name="Author"
content="Ojas">
</head>
<br/><br/><br/><br/><br/><
;br/><br/><div id="errdiv"
align='center'
style="color:red; height:
40px;"><b><?php echo ($err) ? $err :
" "; ?></b></div>
<form action='index.php' method='POST' name='frmlogin'
autocomplete="off" style="margin: 0px;
pading: 0px;">
<input type="hidden" name="posted"
value="posted">
<table cellpadding=0 cellspacing=1 border=0 width=400
align='center'
style="background: #999999; color: #ffffff">
<tr>
<td width=20></td>
<td colspan=3 align='center'
height=50><b>Please login to access.</
b></td>
</tr>
<tr>
<td width=20></td>
<td><b>USERNAME:</b></td>
<td width=5></td>
<td><input type='text' class='textstyle'
name='username'
MAXLENGTH=30>
</tr>
<tr>
<td width=20></td>
<td><b>PASSWORD:</b></td>
<td width=5></td>
<td><input type='password' class='textstyle'
name='password'
MAXLENGTH=30>
</tr>
<input type='hidden' name='userid'>
<tr><td colspan=4
height=10></td></tr>
<tr>
<td width=20></td>
<td colspan=3 align='middle' height=50><input
type='submit'
class='buttonstyle' value='Login'
name='Submit'></td>
</tr>
</table>
</form>
</html>
<?php
}
else
{
?>
<!doctype html public "-//W3C//DTD HTML 4.0
Transitional//EN">
<html>
<head>
<title>Web Interface</title>
<meta name="Author"
content="Ojas">
</head>
<frameset rows="35,*,40,135">
<frame src="builder/top.php"
frameborder="no">
<frame src="builder/config.php"
name="DataFrame" frameborder="no">
<frame src="builder/actions.php"
name="ActionFrame" scrolling="no"
marginwidth="0" marginheight="0"
frameborder="no">
<frame src="builder/blank.html"
name="OutputFrame" marginwidth="0"
marginheight="0" frameborder="yes">
</frameset>
</html>
<?php
}
?>
As you can see the inner frames are in the
"builder" frames. What i
need is to let know whether the session has been created
inside
index.php, while being under builder/actions.php file?
Ojas
On Dec 17, 9:02 am, mkeefe <mke... gmail.com> wrote:
> Store a session using $_SESSION and any file on the
same server will have
> access to that data. Beware that sessions can be forged
with the proper
> exploits, but they are secure enough for most uses.
> Also, make sure you use session_start() before any
output "html" or else you
> will encounter a "Headers already sent"
error.
>
> On 12/16/07, Ojas <contacto... gmail.com> wrote:
>
>
>
> > Hi!
>
> > I am having a problem in tracking the session from
the top page to the
> > inner frame. Actually i have developed an
application which has been
> > made to be accessed after authorization. Since the
authorization is
> > happening at the top page and that page is
consisting of several
> > frames, how can inner frame (script) know that the
authorization has
> > been done?
>
> > Please help me out.
--~--~---------~--~----~------------~-------~--~----~
This group is managed and maintained by the development
staff at 360 PSG. An enterprise application development
company utilizing open-source technologies for todays
small-to-medium size businesses.
For information or project assistance please visit :
http://www.360psg.com
You received this message because you are subscribed to the
Google Groups "Professional PHP Developers"
group.
To post to this group, send email to Professional-PHP googlegroups.com
To unsubscribe from this group, send email to
Professional-PHP-unsubscribe googlegroups.com
For more options, visit this group at http:
//groups.google.com/group/Professional-PHP
-~----------~----~----~----~------~----~------~--~---
|