CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Authenticate users on webpages

Print topic Send  topic

Author Message
Rene
Posted: 08/15/2004, 9:05 PM

Hello!

I created a login page for my website with Code Charge Studio. It kicks ass. But how do I keep people from accessing pages without loging in first?

Using PHP, mySQL database, and session variables.
Damian
Posted: 08/15/2004, 9:56 PM

Did you create the whole site in CCS?
Click on a page in CCS and in the Data Properties the first option is
Restricted. Set it to Yes and set the required permissions.


"Rene" <Rene@forum.codecharge> wrote in message
news:541203292d67e1@news.codecharge.com...
> Hello!
>
> I created a login page for my website with Code Charge Studio. It kicks
ass.
> But how do I keep people from accessing pages without loging in first?
>
> Using PHP, mySQL database, and session variables.
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

Rene
Posted: 08/16/2004, 9:06 AM

No, unfortunately I'm trying to secure an entire site that was done on Dreamweaver. Can I make a restricted page, copy the code, and slap it on the current pages? If I did, would I need to make those pages php's?
DonB
Posted: 08/16/2004, 5:44 PM

You will need to do "something" on the DW pages, that bounce the user to the
login page instead of showing the requested page, whenever the user isn't
logged in.

Actually, it would have been simpler to create CCS pages, which inherently
have the security mechanism - only construct the HTML for the pages in DW.
Maybe you can still do that?

I know nothing about DW, so I can't help you with anything more specific
than that. But, generally speaking, "Yes" - you need to make those pages
php (or asp, or cfm, or whatever you prefer). Unless there is some DW
security mechanism - but then you'll have to figure out how to integrate
that with the CCS security mechanism.

--
DonB

http://www.gotodon.com/ccbth


"Rene" <Rene@forum.codecharge> wrote in message
news:54120db8e3c130@news.codecharge.com...
> No, unfortunately I'm trying to secure an entire site that was done on
> Dreamweaver. Can I make a restricted page, copy the code, and slap it on
the
> current pages? If I did, would I need to make those pages php's?
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

Rene
Posted: 08/17/2004, 7:36 PM

OK. In ASP, I'd user the following script:

<%
'If the session variable is False or does not exsist then redirect the user to the unauthorised user page
If Session("UserGood") = False or IsNull(Session("UserGood")) = True then

'Redirect to unathorised user page
Response.Redirect"default.asp"
End If
%>

How would I translate this into PHP and what is the name of the session CodeCharge creates when a user is looged in.
Damian
Posted: 08/18/2004, 3:58 AM

Try CCGetUser....


"Rene" <Rene@forum.codecharge> wrote in message
news:54122c0ba3b3cd@news.codecharge.com...
> OK. In ASP, I'd user the following script:
>
> <%
> 'If the session variable is False or does not exsist then redirect the
user to
> the unauthorised user page
> If Session("UserGood") = False or IsNull(Session("UserGood")) = True then
>
> 'Redirect to unathorised user page
> Response.Redirect"default.asp"
> End If
> %>
>
> How would I translate this into PHP and what is the name of the session
> CodeCharge creates when a user is looged in.
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

Damian
Posted: 08/18/2004, 6:06 AM

I dont think you can be granular in your security this way as it is only
checking to see if you are logged in, not what level of security you have.
Use CCGetUser to do what you are saying below. However you could always
recreate your pages in PHP. You can copy your HTML code in without much
fuss.


"Rene" <Rene@forum.codecharge> wrote in message
news:54122c0ba3b3cd@news.codecharge.com...
> OK. In ASP, I'd user the following script:
>
> <%
> 'If the session variable is False or does not exsist then redirect the
user to
> the unauthorised user page
> If Session("UserGood") = False or IsNull(Session("UserGood")) = True then
>
> 'Redirect to unathorised user page
> Response.Redirect"default.asp"
> End If
> %>
>
> How would I translate this into PHP and what is the name of the session
> CodeCharge creates when a user is looged in.
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>


Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.