login System

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
bsouthuk
Posts: 261
Joined: Fri Dec 05, 2008 7:25 pm

login System

Post by bsouthuk » Fri Feb 12, 2010 1:49 pm

Hi, wonder id someone can help

I've built an application using Studio and am looking to build a login system for it. Obviously users will have to enter their username and password to access the application.

It's also important for me to know as to when users are logged in and when they have logged in and out throughout the day.

I understand this is quite a big job and dont expect anybody to reply with instructions and scripts to build the login system. However, if anybody could point me in the right direction, any tutorials, etc then i would most appreciate it.

Cheers

Dan

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1239
Joined: Sat Apr 08, 2006 1:10 pm
Contact:

Re: login System

Post by BvG » Fri Feb 12, 2010 2:33 pm

Most likely you are thinking about saving data on a remote computer. The easiest way (from a scripting perspective), is to use a cgi app that runs on an apache server. However, this can be tricky to set up. Another way is to make a rev stack that acts like a http server, or to create a full client-server protocol. Theoretically you could also depend on windows file sharing, and just save stuff on the network directly. However, my experience is that windows file sharing is failing quite regularly. Or you can depend on FTP and save/read files on a ftp server.

As for things to look into, try revOnline. There's quite a few stacks there that show server or client implementations. You can access it from the IDE Button bar. I have made a bare bones http server stack, and maybe that could be a starting point for you.

Another resource is the lessons center, for example this one about using FTP.


If you're more inclined to learn stuff yourself, try these entries in the dictionary (and their "see also"!):

open socket
accept
url (like: put url ("http:/internal_server_for_login")
libURLFTPuploadFile
(i'm sure there's more that i forgot about)
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

bsouthuk
Posts: 261
Joined: Fri Dec 05, 2008 7:25 pm

Re: login System

Post by bsouthuk » Fri Feb 12, 2010 2:45 pm

Excellent, thank you very much for this information

Daniel

Post Reply