| metaphiz | -- 11-03-2011 @ 10:55 AM |
|
How do you show a welcome back message for a user's second session? Thanks for the help! This message was edited by metaphiz on 11-3-11 @ 10:55 AM
|
|
| Lyndon | -- 11-04-2011 @ 7:32 AM |
|
If you're keeping login information in a database, add a column for visits and increment it when they login. Then you can just test for visits>0 Lyndon
|
|
| Webmaster | -- 12-08-2011 @ 10:03 PM |
|
or you can set a cookie... then if the cookie exists (set the welcome back)... <cfif structKeyExists(cookie, 'visited')> Welcome back! </cfif> <cfcookie name="visited" value="#now()#" expires="never" /> In addition, you could also do a date compare... this might be useful if you want to "say.. it's been x days since you've been here!".... Pablo Varando Senior Application Architect EasyCFM.COM, LLC. 904.483.1457 \\ mobile webmaster@easycfm.com \\email \m/ (>.<) \m/ --- rock on ---
|
|
| EasyCFM.COM ColdFusion Forums : | http://www.easycfm.com/forums |
| Topic: | http://www.easycfm.com/forums/viewmessages.cfm?Forum=12&Topic=15230 |