|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
|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')>
<cfcookie name="visited" value="#now()#"
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!"....
Senior Application Architect
904.483.1457 \\ mobile
\m/ (>.<) \m/
--- rock on ---
|EasyCFM.COM ColdFusion Forums :||http://www.easycfm.com/forums|