|
||||
Of course you will get an error la. You should not <cfinclude> this file at the action page of the registration... wrong place wrong place...
This file "PreRegisterSessionUSer.cfm" is used to check whether a user has logged in or not, 1. if he has logged in, then we proceed to display the page 2. if he has not login, then we bring him to the login page For example, let's say I have a page called "modify_profile.cfm" that is used to display a member's profile and let him do modification. Of course I won't simply let anybody view it... What I need to do is, I will check whether a user has logged in. If he has logged in, then HE IS A MEMBER, and so DISPLAY HIS PROFILE FOR HIM TO MODIFY. How?? How to know he has logged in or not? Check session.username. If session.username is IsDefined, then he has logged in ! Proceed to display his profile by <cfquery name=qryProfile datasource=data> select * from users where username = '#session.username#' </cfquery> In short, at the very top of "modify_profile.cfm", I will put <cfinclude template="PreRegisterSessionUSer.cfm"> to do the checking.... ------ You get an error is most likely because the server cannot find the variable Session.UserName. Right?? This is because, your user has not logged in.
__________________
webmaster @ http://kongtechnology.com |
|
||||
Wow, how come so fast?? --suddenly finished already...
Your system has login only and nothing else?? ![]()
__________________
webmaster @ http://kongtechnology.com |
|
||||
dear mr kpyew... saya dah send msg kat kpyew.. tapi... no reply.. i just nak tanyer... i've read from somewhere that cfm nih boleh untuk windows nt dn yang power jerkk.. tapi kalauwindows 95 0r 98 tak leh ker... dan ram nyer tuh pun mesti atas daripada 128.. betul ker tak.. sebab i nyer pc tak leh nak isi requirement nyer... so.. cfm nih kene yang power jerk ker.. kalau yang power.. tak leh aaa saya ngan hadiena nak try cfm...ten q
__________________
AkU @daLaH aKu |
|
||||
Re: baru nak tau
Quote:
![]() Quote:
However, at home (personal development, freelance projects), I am using ColdFusion 4 on Athlon 700 + 384 MB RAM + Windows98. It runs very fast. I have another lower end PC running ColdFusion 4 too, it is a Pentium 166 + 64MB RAM + Windows98. This ColdFusion runs well too, and should be fine for small scale development work. Probably whit3_cryst4l has tried CF5, maybe she can tell us how well CF5 performs... and on what kind of machine configuration. So, whit3_cryst4l.... help help ![]()
__________________
webmaster @ http://kongtechnology.com |
|
||||
apa daa kpyew...
Quote:
Quote:
... saya guna CF4.5 ler... kot lec baik ati nak beli CF5 leh gak try... aper yg bess ekkk CF5 nie??? ![]() |
|
|||
eheh.. aku dah tengok ko nya tutorial tu kpyew..
tapi bagi aku the best dan yang paling wajib bila korang nak blaja cfm ikut/baca apa yang ader kat http://cfserver/cfdocs/dochome.htm aku baru lagik ngan cold fusion ni sebelum ni duk coding ngan php but now kerja kena pakai benda ni kena laa blaja .. eee masalah
__________________
.:: Support Local Web Scene ::. |
|
||||
Re: Apa sebenarnye ColFushion NI???
Quote:
http://www.macromedia.com/software/coldfusion/
__________________
webmaster @ http://kongtechnology.com |
|
|||
kenapa nak guna session lagik kalau dah guna cookies, saya refer kepada code ni
<cfset Session.UserName = Cookie.UserName> kalau tak guna cookies guna jek laa cookies terus kalau nak guna session guna laa session terus .. cf5 kalau tak silap mempunyai ability tuk force session kalau korang ader 2 atau lebih server tuk surf coldfusion ni . then cf5 mempunyai component (cfc) yang tak der lam 4.5, selain dr tu 4.5 pon ader masalah sikit dengan memory management kalau tak silap aku yang menyebab kan proses tuk coldfusion server tinggi semacam jek tu aje nak tambah |
![]() |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Flash Introduction Course | kidino | Website Design | 6 | 20-07-2002 06:22 PM |
| Flash Introduction Course | kidino | Websites Review and Suggestion | 3 | 28-06-2002 01:11 AM |
| Flash Introduction Course | kidino | Mamak Stall | 0 | 27-06-2002 11:06 AM |
| Introduction to Flash Course | kidino | News and Announcements | 0 | 27-06-2002 11:04 AM |
| Just an introduction | Sticky | Mamak Stall | 12 | 17-04-2002 01:44 PM |
All times are GMT +8. The time now is 04:25 AM.
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 vBulletin skin by ForumMonkeys.com.
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 vBulletin skin by ForumMonkeys.com.







yg saya buat ni ader salah ker??? 








Linear Mode

