Link to home
Start Free TrialLog in
Avatar of notesrookie
notesrookieFlag for United States of America

asked on

Redirecting users to a new database on another server in another domain

Greetings experts,

I am on Domino 8.5.2 on a Windows 2003 Enterprise platform. I created a replica of a database on server B (in domain B) as the copy on server A (in domain A) was going away. I put in a nice redirect page that opens in a frameset, hiding and showing the necessary information depending on which server you are on. For server A it would show button to get to copy on server B. On server B you click on a button to open the normal frameset.

I didn't think that any of the users would be able to get past this page on server A (even I can't get to the View > Go to ...) however, i was able to get to a view on the copy on server A using the links in the History folder.

Is there a better way to redirect people to the correct copy of the database? Any way I can get rid of their history?

Thanks for your suggestions and ideas.

Regards - Notes Rookie.
Avatar of Sjef Bosman
Sjef Bosman
Flag of France image

Best to me seems to be
- create a Notes mail, asking them to click...
- add a database link
- and tell them that the old database will be removed in a week
- send the mail to all Notes users

Remove the database in a week, and be prepared to answer questions from people who are too lazy to read your mails.
The Admin client now handles this for you automatically.  When you delete a database using the Admin client, you will be prompted to create an automatic redirect.
User generated image
Avatar of notesrookie

ASKER

Unfortunately I am not admin in the domain A that had database A. I did send out the emails with a calendar reminder they could click on to add to their calendar. I was sooo nice! :)

But you know there will always be someone who will use their history or bookmark link and circumvent the usual stuff put in place.

But thanks for the update on the admin client - that is nice?

Is t here any way to delete their history programmatically? I could place a redirect on each of the views that they may get to but that would be a real pain. Does Domino have a way to see what views were used most often in a database?

It is great that I learn something new every time I post a question on top of getting my question answered!

Thank you all!!

Regards - Notes Rookie
Why not remove the database altogether? Those who didn't follow your 2nd mail's advice (with the announcement that the db is removed), will contact you soon enough.
Can you replace replica A with a new database? One that only contains the redirect page/code?
sjef - I am unable to remove the database from domain A. I am admin for domain B where the new replica now resides.

Bill - No I am not able to replace replica A with a new database

Regards - Notes Rookie
You may be able to code the Database's OnOpen event to do what you need.  It should fire regardless of how the database was accessed.  Be aware that the event will not fire if you have the database open in Designer (haven't tested this since R6).  Also, this only works in the Notes client.
Bill-H - Let me try that and see what happens.
> It should fire regardless of how the database was accessed.
AFAIK there is no OnOpen event, and the PostOpen event doesn't necessarily fire, e.g. when the database is opened using code. I vaguely remember that there were other ways to circumvent the PostOpen event... Was it View/GoTo...?
Actually - I did try the PostOpen event but the database property that says to open using a frameset overrode that event. When you have a frameset in place you don't even see the View > Go to ..., that is, if you do not have a frame pointing to a view.

I am not sure what else to do. Suggestions? Ideas? Crazy thoughts?

Thanks - Notes Rookie
You may be Admin for domain B, but you probably can access the db's ACL on domain A? A suggestion:
- disable replication for the database in domain A
- set ALL users in the ACL in that database to No Access
- make sure you still have Manager rights
- send the users a mail telling them what to do if they can't open the database (File/Replication/Find Replica)
Bad news! I don't even have enough access to change the ACL. Sorry!
ASKER CERTIFIED SOLUTION
Avatar of Sjef Bosman
Sjef Bosman
Flag of France image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
That's the ticket, sjef.

That is the solution I implemented, your second (although the 1st one sounds rather intriguing). I have a frameset that opens with all kinds of hide whens like you mentioned. Server A copy would has a warning and click here to connect to server B. Server B has a button that takes them to the correct frameset. Also coded database script > postopen event to prevent them from opening the database if it is on server A and sending them to server B.

So is there any possible way that a user would be able to circumvent this? I am sure they will find a way

Thanks, sjef, fpr your help.

Regards - Jade
Great as always!
Kind words. Thanks!