Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 8431 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi everyone. smile.gif" border="0

I'd be grateful if you could help me!

I'm using an iMac G3 on MacOS 9.1 with WebStar Server Suite 4.4, Lasso 3.6.6.2 and FileMaker Pro 5.5 to host my web site.

This web site works great when viewing the pages on another Mac through Internet Explorer 5.

But I have a problem when I try viewing the web site on Windows 98 and Explorer 5 (using Virtual PC emulator - which is just the same as the real thing only slower).

My website works like this:

After the user has successfully logged in with the correct username and password, I set a cookie in the user's browser using the following code:

code:


[Variable_Set:'Client_IP'=Client_IP]

[Cookie_Set: 'LoginCookie' = (String_Concatenate: field:'UserID', var:'Client_IP'), Secure]


.....and set this cookie value in the "LoginCookie" field on the user's record by "-update". I know the field value is added correctly because I manually check this. I haven't been able to verify if the cookie is set properly. How do I find cookie values on Window's version of Explorer 5? But I'm sure I switched on cookies on my Window's Explorer.... so what's up??

On all the member section pages I use the following code:

code:


[if: (cookie: LoginCookie) == (field: LoginCookie)]

show usual member's section HTML

[Else: (CurrentCookie: LoginCookie) != (field: LoginCookie)]

[include:relogin.lasso]

[/if]


This cookie verification is for added security so that you can only view the member pages if you enter via the proper Login page. On a Mac I can successfully log in and read my usual member's section HTML.

But on Windows I successfully log in and then get my re-login html! Maybe my cookie isn't being stored properly in my Window's browser??

Or is there a known reason for this happening? Do I have to set up WebStar in a certain way? Is there something wrong with my lasso code?

I'd really appreciate some feedback! Thank you in advance!!

Krishan. smile.gif" border="0

Posted

Thanks Anatoli. smile.gif" border="0

I read your topic discussion with Proton:

http://www.fmforums.com/cgi-bin/ultimatebb.cgi?ubb=get_topic&f=21&t=000273

called "Anatoli is in trouble -- Cookies and FileMaker. " I think that was the topic you meant, right?

I have thought about this and it could be a problem with the way I write my code.

I was told by somebody:

quote:

"If you're looking for matching values and not just to see if the

cookie is there, display both values in quotes so you can see exactly

what they are and where they stop and start to make sure there's no

spaces that would be causing them to be considered unequal. If the

cookies might contain special characters, use (cookie:

'LoginWhatever', raw). The raw tag will help get around those special

characters in the case that the browser is using different

translations of them to send back to the server."


The "raw" tag is a good idea. I noticed in the reference database

they used EncodeRaw. Is there a difference?

Somebody else suggested setting the path to "/". I might try that too.

But first I'll re-try taking out the "secure" tag. I haven't got SSL implemented yet.

Thanks for the help. smile.gif" border="0

This topic is 8431 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.