Home Forum NetTalk Wiki Download/Upload Links Search Fat Chat
Links

Clarion

Clarion Desktop
Capesoft

Java Script

Java Calendar

NetTalk WebServers

POSitive Connect

Clarion Sites

Pimp my Clarion

RSS Feeds

Add to MyYahoo!
Subscribe in NewsGator Online
Add to Newsburst
Add to Google
Add to My AOL
Add to Pluck
Subscribe in FeedLounge
Add to Windows Live
Add to NetVibes
Subscribe in Rojo
Subscribe in Bloglines
Add to MyMSN
Add to Plusmo for your cellphone
Add to PageFlakes
Add to Technorati
Add to BlinkBits

Site Stats

Visits today: 110
Visits yesterday: 178
Visits month: 1497
Visits total: 122723
Max.monthly visits: 6414
  occurred: 2010-8
Pages this month: 6749
Pages total: 685585
Data since: 2007-06-23
Home arrow Forum arrow NetTalk Web Serverarrow Web Server - Ask For Helparrow Calling browse from other site, check login if not ok then open login url
NetTalk Central
September 09, 2010, 10:34:07 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to the NetTalk Central Forums!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Calling browse from other site, check login if not ok then open login url  (Read 92 times)
sabra
Newbie
*
Posts: 3


View Profile Email
« on: February 01, 2010, 08:38:30 am »

I have a default browse which must be called from another site .
http://mysite:88/w_keuringen?Username=walter&Password=1234. In the procedure setup i added this code (by Stu):

Q1: If the login is not ok, how do i load (goto) the default login page? (w_login. login.htm)
Q2; Is there a more sequre way to pass login code ?

Best Regards,

Walter, Sabra Systems.

! Clear Important Session Vars
!----
 l:Username = p_web.GetValue('Username')
 l:Password = p_web.GetValue('Password')
 FailedLogin# = True

 if l:username and l:Password

   p_web.SSV(g_eClearance,_eVisitor)
   p_web.SSV(g_eUsername,'')
   p_web.SSV(g_eUserID,0)

   FailedLogin# = false
 
   do OpenFiles
   !-
   ! Hoofdbes
   !----
   clear(Hfd:Record)
   Hfd:Number = clip(l:Username)
 
   if (Access:Hoofdbes.TryFetch(Hfd:KeyNR) = Level:Benign)
     !-
     ! Password Check
     !----
     if (l:Password = Hfd:WebPassword)
       !-
       ! Current check
       !----
       if (Hfd:WebsitePub = true)
         !-
         ! Set Values
         !----
         p_web.SSV(g_eUserID,Hfd:AutoNR)
         p_web.SSV(g_eUsername,Hfd:Number)
         p_web.SSV(g_eDisplayName,Hfd:Persoon)
         p_web.SSV(g_eClearance,_eUser)
               !
         p_web.SetSessionLevel(50)
         p_web.ValidateLogin()

 
       else
         FailedLogin# = true
         loc:Invalid = 'l:Username'
         p_web.SetValue('retry','index.htm')
         loc:Alert = 'Uw Account is niet (langer) actief. Vraag svp een nieuwe toegangscode aan.'
         return
       end
     else !//pasword
       FailedLogin# = true
     .
   else !//erroget
      FailedLogin# = true
   .

 .


  !-
  ! Login Passed/Failed?
  !----
  if (FailedLogin# = false)
    !-
    ! Continue
    !----
    p_web.ValidateLogin()
    !-
  else
    !-
    ! Bad Login, Set INVALID
    !----
    loc:Invalid = 'l:Username'
    p_web.SetValue('retry','index.htm')
    !loc:Alert = 'Login Failed. Please try again.'
    return
  .






Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Login Form

Welcome Guest.






Lost Password?
No account yet? Register

ClarionMag News

mod_dbrss2 AJAX RSS Reader poweredbysimplepie
home contact search contact search