Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Please Help: Mac is Server & PC is Client

Featured Replies

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

See my rant about cookies collisions between WC and MSIE. NN works OK.

  • Author

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

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.