Writing a super simple Login

I have an old wiki that I really like that had no login. I wanted to lock it down with out having to write a bunch of code. Nothing super important but important enough to keep people out. Just add a couple random vars and poof - problem solved.

<cfparam name="url.Action" default="">
<cfparam name="url.Snuggums" default="">
<cfparam name="session.logedin" default="false">

<cfif url.Action EQ "eamyrfg338645dddesdjft3" AND url.Snuggums EQ "phlarph">
   <cfset session.logedin = "true">
</cfif>

<cfif url.Action EQ "logout">
   <cfset session.logedin = "false">
</cfif>

<cfif session.logedin EQ "false">
   <cfabort>
</cfif>

Comments
That's right bitches!! Free ColdFusion!!

Recent Entries

Calendar

Tags

NAVIGATION

Recent Comments

RSS

Search

Subscribe