Ah

i think you can use the session control for it
what i would do tho is have on top of the page something like

<?php
if($_SESSION['uid']==0 or empty($_SESSION['uid'])
{
    header("Location: login.php");
}

?>

ofc there are many ways to do that but that's the most basic imo.
while your at sessions you should look into :
http://www.ape-project.org/wiki/index.php/Tutorial:Using_sessions



Kind Regards.
Ruben Decleyn



On Mon, Aug 30, 2010 at 3:09 PM, marie_dk <[email protected]> wrote:

>
>
> On 30 Aug., 14:34, Ruben Decleyn <[email protected]> wrote:
> > Yeh ajax requests ..
> > that's what it's all about ..
> >
> > but i don't understand what you are trying to do exactly ..
>
> I want to build a web based chat, and use the APE server as a backend.
> APE is a comet server and therefore much more suitable for long-lived
> requests than Apache.
>
> The reason I need mysql support, is because this chat system is not
> going to be publicly available. It is only available to authenticated
> users (users already logged in at the website). Therefore I need to be
> able to authenticate against a database on the server side.
>
> But another solution could be to maintain a text file for APE and this
> textfile could contain all authenticated users.
>
> /marie_dk
>
> --
> You received this message because you are subscribed to the Google
> Groups "APE Project" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<ape-project%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/ape-project?hl=en
> ---
> APE Project (Ajax Push Engine)
> Official website : http://www.ape-project.org/
> Git Hub : http://github.com/APE-Project/
>

-- 
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/

Reply via email to